feat(web): add new mozilla mobile release
This commit is contained in:
parent
ffbe466cfe
commit
2e42436110
@ -431,10 +431,11 @@
|
|||||||
<a
|
<a
|
||||||
class="bg-gradient-to-r button from-firefox-1 md:hover:animate-gradient to-firefox-3 via-firefox-2"
|
class="bg-gradient-to-r button from-firefox-1 md:hover:animate-gradient to-firefox-3 via-firefox-2"
|
||||||
href="/releases/latest.xpi"
|
href="/releases/latest.xpi"
|
||||||
|
id="firefox-link"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<img aria-hidden="true" class="icon" src="/images/firefox.svg" />
|
<img aria-hidden="true" class="icon" src="/images/firefox.svg" />
|
||||||
Firefox XPI <sup>1</sup>
|
Mozilla Firefox <sup>1</sup>
|
||||||
<svg
|
<svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
@ -505,5 +506,15 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
12
packages/web/src/mozilla-mobile/updates.json
Normal file
12
packages/web/src/mozilla-mobile/updates.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
packages/web/src/releases/7.2.2-mozilla-mobile.xpi
Normal file
BIN
packages/web/src/releases/7.2.2-mozilla-mobile.xpi
Normal file
Binary file not shown.
BIN
packages/web/src/releases/latest-mozilla-mobile.xpi
Normal file
BIN
packages/web/src/releases/latest-mozilla-mobile.xpi
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user