diff --git a/download.html b/download.html index eb3edc5..19775fa 100644 --- a/download.html +++ b/download.html @@ -49,19 +49,30 @@
Fetching latest...
- Download for Chrome - + Download Portage (.crx) +
- Loaded as an unpacked extension. Data swap APIs are fully supported. + Enable Developer mode, then drag the .crx onto the extensions page.
- + + +
+ Developer install (unpacked source) + + Download unpacked (.zip) +
@@ -78,7 +89,6 @@
Download Portage (.xpi) - Download unsigned (.zip)
@@ -94,12 +104,13 @@
Developer install (unsigned source)

Temporary add-ons are removed when Firefox restarts.

+ Download unsigned (.zip)
@@ -147,12 +158,16 @@ const tag = data.tag_name || "Latest"; let chromeUrl = data.html_url; + let chromeZipUrl = data.html_url; let firefoxXpiUrl = data.html_url; let firefoxZipUrl = data.html_url; if (data.assets && data.assets.length > 0) { - const cAsset = data.assets.find(a => a.name === "portage_chrome.zip"); - if (cAsset) chromeUrl = cAsset.browser_download_url; + const crxAsset = data.assets.find(a => a.name.endsWith(".crx")); + if (crxAsset) chromeUrl = crxAsset.browser_download_url; + + const cZipAsset = data.assets.find(a => a.name === "portage_chrome.zip"); + if (cZipAsset) chromeZipUrl = cZipAsset.browser_download_url; const xpiAsset = data.assets.find(a => a.name.endsWith(".xpi")); if (xpiAsset) firefoxXpiUrl = xpiAsset.browser_download_url; @@ -164,6 +179,7 @@ verChrome.textContent = tag; verFirefox.textContent = tag; btnChrome.href = chromeUrl; + document.getElementById("btn-chrome-zip").href = chromeZipUrl; btnFirefox.href = firefoxXpiUrl; btnFirefoxZip.href = firefoxZipUrl;