diff options
| author | altaf-creator <dev@altafcreator.com> | 2026-01-09 22:11:10 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2026-01-09 22:11:10 +0800 |
| commit | 85afbb89dd1ab32583b77a530f14c338fff0b29d (patch) | |
| tree | 21c75713c6ef9b0cc8d8591d5686e8a97fb949c6 /frontend/ios_popup.js | |
| parent | 36a1e21e3d85fd1faa70a60b1515826a551d2e28 (diff) | |
ajkhfsdjhkfdsa
Diffstat (limited to 'frontend/ios_popup.js')
| -rw-r--r-- | frontend/ios_popup.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/ios_popup.js b/frontend/ios_popup.js new file mode 100644 index 0000000..0b700ed --- /dev/null +++ b/frontend/ios_popup.js @@ -0,0 +1,9 @@ +(async () => { +const cookie = await cookieStore.get("subscription_endpoint"); + +if (navigator.userAgent.match(/iPhone|iPad|iPod/i) + && !window.matchMedia('(display-mode: standalone)').matches + && !cookie) { + openPopup(); +} +})(); |
