From 5b87d28a92f332e1056b1d20a9651d364ea0f806 Mon Sep 17 00:00:00 2001 From: VBproDev Date: Thu, 16 Jan 2025 20:11:41 +0530 Subject: [PATCH] Made the Safari detection regex more accuarte --- script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.ts b/script.ts index d47d269..298e3ed 100644 --- a/script.ts +++ b/script.ts @@ -479,7 +479,7 @@ save.addEventListener('click', () => { cstpNotification.classList.remove('show'); }); - if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) cstpNotification.classList.add('show'); + if (/^((?!chrome|crios|fxios|edgios|opr|android).)*safari\/[0-9.]+$/.test(navigator.userAgent)) cstpNotification.classList.add('show'); popup_saved.classList.add('show'); saveTimer = setTimeout(() => { popup_saved.classList.remove('show'); }, 2300)