Skip to content

Commit

Permalink
Made the Safari detection regex more accuarte
Browse files Browse the repository at this point in the history
  • Loading branch information
VBproDev committed Jan 16, 2025
1 parent 5e95753 commit 5b87d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5b87d28

Please sign in to comment.