Skip to content

Commit 3a1f38e

Browse files
committed
Fix Safari test so it doesn't return true on Chrome
1 parent cee70c6 commit 3a1f38e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/_enqueues/admin/user-profile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
successTimeout,
2424
isMac = window.navigator.platform ? window.navigator.platform.indexOf( 'Mac' ) !== -1 : false,
2525
ua = navigator.userAgent.toLowerCase(),
26-
isSafari = ua.indexOf( 'safari' ) !== -1 && ua.indexOf( 'chrome' ) === -1,
26+
isSafari = window.safari !== 'undefined' && typeof window.safari === 'object',
2727
isFirefox = ua.indexOf( 'firefox' ) !== -1;
2828

2929
function generatePassword() {

0 commit comments

Comments
 (0)