diff --git a/app.js b/app.js
index 0ab5ca2..f9edad6 100644
--- a/app.js
+++ b/app.js
@@ -96,25 +96,17 @@ function getMobileLaunch(service) {
fallbackUrl
};
}
- if (!service.mobileUrl) return null;
- return {
- url: service.mobileUrl,
- fallbackUrl: service.url
- };
+ return null;
}
function openMobileLaunch(url, fallbackUrl) {
let didLeavePage = false;
let fallbackTimer = null;
- let cleanupTimer = null;
- let launcherFrame = null;
const cleanup = () => {
window.removeEventListener('pagehide', markPageLeft);
document.removeEventListener('visibilitychange', handleVisibilityChange);
if (fallbackTimer) window.clearTimeout(fallbackTimer);
- if (cleanupTimer) window.clearTimeout(cleanupTimer);
- if (launcherFrame) launcherFrame.remove();
};
const markPageLeft = () => {
@@ -143,19 +135,7 @@ function openMobileLaunch(url, fallbackUrl) {
return;
}
- launcherFrame = document.createElement('iframe');
- launcherFrame.hidden = true;
- launcherFrame.style.display = 'none';
- launcherFrame.setAttribute('aria-hidden', 'true');
- document.body.appendChild(launcherFrame);
- launcherFrame.src = url;
-
- cleanupTimer = window.setTimeout(() => {
- if (launcherFrame && launcherFrame.parentNode) {
- launcherFrame.remove();
- launcherFrame = null;
- }
- }, 2600);
+ window.location.href = url;
}
function createServiceCard(service) {
diff --git a/index.html b/index.html
index ea067aa..1becadf 100644
--- a/index.html
+++ b/index.html
@@ -128,6 +128,6 @@
-
+