Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Handle alt Android OS in public album Try Ente link

Anand Baburajana41c01659458
diff --git a/web/apps/photos/src/utils/public-album.ts b/web/apps/photos/src/utils/public-album.ts
index f535fbbea2..b9c2740c2c 100644
--- a/web/apps/photos/src/utils/public-album.ts
+++ b/web/apps/photos/src/utils/public-album.ts
@@ -12,10 +12,16 @@ export const getEnteURL = (isTouchscreen: boolean): string => {
userAgent.includes("iPhone") ||
userAgent.includes("iPod");
const isAndroid = userAgent.includes("Android");
+ const isAltAndroidOS =
+ /LineageOS|Graphene|Calyx|\/e\/|eOS|HarmonyOS|Huawei|Fire OS|Silk\//i.test(
+ userAgent,
+ );
if (isIOS) {
return "https://apps.apple.com/app/id1542026904";
} else if (isAndroid) {
+ // Play Store links can bounce or fail on non-Play Android variants.
+ if (isAltAndroidOS) return "https://web.ente.io";
return "https://play.google.com/store/apps/details?id=io.ente.photos";
}
// For other touchscreen devices, fall back to web