From 85afbb89dd1ab32583b77a530f14c338fff0b29d Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Fri, 9 Jan 2026 22:11:10 +0800 Subject: ajkhfsdjhkfdsa --- frontend/ios_popup.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 frontend/ios_popup.js (limited to 'frontend/ios_popup.js') 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(); +} +})(); -- cgit v1.2.3