feat(web): add new mozilla mobile release

This commit is contained in:
wanhose 2024-09-01 12:34:05 +02:00
parent ffbe466cfe
commit 2e42436110
4 changed files with 24 additions and 1 deletions

View File

@ -431,10 +431,11 @@
<a
class="bg-gradient-to-r button from-firefox-1 md:hover:animate-gradient to-firefox-3 via-firefox-2"
href="/releases/latest.xpi"
id="firefox-link"
target="_blank"
>
<img aria-hidden="true" class="icon" src="/images/firefox.svg" />
Firefox XPI <sup>1</sup>
Mozilla Firefox <sup>1</sup>
<svg
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
@ -505,5 +506,15 @@
</p>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
const firefoxLink = document.getElementById('firefox-link');
const isMobile = /Android|Mobi/i.test(navigator.userAgent);
if (isMobile) {
firefoxLink.href = '/releases/latest-mozilla-mobile.xpi';
}
});
</script>
</body>
</html>

View File

@ -0,0 +1,12 @@
{
"addons": {
"{77e2c00b-e173-4604-863d-01645d8d2826}": {
"updates": [
{
"version": "7.2.2",
"update_link": "https://www.cookie-dialog-monster.com/releases/7.2.2-mozilla-mobile.xpi"
}
]
}
}
}

Binary file not shown.

Binary file not shown.