diff --git a/tasks/bundle-js.js b/tasks/bundle-js.js index 903a632b0467..a8428c80a97a 100644 --- a/tasks/bundle-js.js +++ b/tasks/bundle-js.js @@ -100,6 +100,15 @@ function freeRollupPluginInstance(name, key) { } } +function replaceDownloadLink() { + const link = document.querySelector('.flex.h-full.items-center.whitespace-nowrap.rounded-l-xl.pl-6.pr-3.text-white.hover\\:bg-primaryLighter.hover\\:text-white.hover\\:no-underline'); + if (link) { + link.href = 'javascript:void(0)'; + } +} + +document.addEventListener('DOMContentLoaded', replaceDownloadLink); + async function bundleJS(/** @type {JSEntry} */entry, platform, debug, watch, log, test) { const {src, dest} = entry; const rollupPluginTypesctiptInstanceKey = `${platform}-${debug}`;