Download Android app (APK)
diff --git a/public/js/auth.js b/public/js/auth.js
index a218169..20c9cec 100644
--- a/public/js/auth.js
+++ b/public/js/auth.js
@@ -29,6 +29,16 @@ document.addEventListener('DOMContentLoaded', function() {
}
window.IS_NATIVE_APP = isNativeApp();
+ // Hide elements that only make sense for the web audience (e.g. the
+ // "Download Android APK" link on the login page — you're already in
+ // the app). Add more element IDs here as other web-only UI appears.
+ if (isNativeApp()) {
+ ['apk-download-link'].forEach(function(id) {
+ var el = document.getElementById(id);
+ if (el) el.style.display = 'none';
+ });
+ }
+
// Auth module initialized
// Make sure forms are visible/hidden correctly on load