mirror of
https://github.com/PurpleI2P/purplei2p.github.io
synced 2025-02-06 11:44:14 +00:00
Correct Android DL link
This commit is contained in:
parent
70dd50563b
commit
478478c9ee
@ -27,9 +27,15 @@ function renderReleaseInfo(release) {
|
|||||||
all_dls.show();
|
all_dls.show();
|
||||||
}
|
}
|
||||||
} else if (window.navigator.userAgent.toUpperCase().indexOf("ANDROID") !== -1) {
|
} else if (window.navigator.userAgent.toUpperCase().indexOf("ANDROID") !== -1) {
|
||||||
|
var droid_asset = release.assets.filter(function(a) {
|
||||||
|
if (a.name.toUpperCase().indexOf("ANDROID") !== -1) return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (droid_asset.length > 0) {
|
||||||
dl_btn.text(i18next.t("header.dl-btn-android"));
|
dl_btn.text(i18next.t("header.dl-btn-android"));
|
||||||
dl_btn.attr("href", "https://play.google.com/store/apps/details?id=net.i2p.android");
|
dl_btn.attr("href", droid_asset[0].browser_download_url);
|
||||||
all_dls.show();
|
all_dls.show();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
dl_btn.text(i18next.t("header.dl-btn"));
|
dl_btn.text(i18next.t("header.dl-btn"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user