From f0ac4ef80a791053fe11332d4098472009930927 Mon Sep 17 00:00:00 2001 From: HuyNguyen Date: Mon, 5 Feb 2024 09:23:46 +0700 Subject: [PATCH] TF-2565: Update iOS store link --- web/worker_service/style.css | 34 ++--- web/worker_service/worker_service.js | 213 ++++++++++++++------------- 2 files changed, 125 insertions(+), 122 deletions(-) diff --git a/web/worker_service/style.css b/web/worker_service/style.css index cadf8665d..d7a282ea6 100644 --- a/web/worker_service/style.css +++ b/web/worker_service/style.css @@ -1,26 +1,26 @@ -.bottom-sheet { - display: none; - position: fixed; - bottom: 0; - left: 0; - width: 100%; - background-color: #fff; - border-top-left-radius: 20px; - border-top-right-radius: 20px; - box-shadow: 0px -3px 10px rgba(0, 0, 0, 0.2); - overflow: hidden; +.bottom-sheet { + display: none; + position: fixed; + bottom: 0; + left: 0; + width: 100%; + background-color: #fff; + border-top-left-radius: 20px; + border-top-right-radius: 20px; + box-shadow: 0px -3px 10px rgba(0, 0, 0, 0.2); + overflow: hidden; } .sheet-header { - display: flex; - justify-content: space-between; - align-items: center; - padding: 10px 20px; - color: #fff; + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px 20px; + color: #fff; } .sheet-content { - padding: 20px; + padding: 20px; } .open_on_mobile_title { diff --git a/web/worker_service/worker_service.js b/web/worker_service/worker_service.js index 330786e0b..d2a784145 100644 --- a/web/worker_service/worker_service.js +++ b/web/worker_service/worker_service.js @@ -1,8 +1,9 @@ const androidStore = 'https://play.google.com/store/apps/details?id=com.linagora.android.teammail'; -const iosStore = 'https://apps.apple.com/vn/app/twake-mail/id1587086189'; +const iosStore = 'https://apps.apple.com/app/twake-mail/id1587086189'; const iosPlatform = 'iOS'; const androidPlatform = 'android'; const otherPlatform = 'other'; +const timeoutDuration = 4000; var serviceWorkerVersion = null; var scriptLoaded = false; @@ -18,119 +19,121 @@ function loadMainDartJs() { } function fetchServiceWorker() { -if ('serviceWorker' in navigator) { - // Service workers are supported. Use them. - // Wait for registration to finish before dropping the