This commit is contained in:
Tim Schaub
2022-03-19 14:49:07 -06:00
parent e10b7470a6
commit d7cb12a016
2 changed files with 19 additions and 1 deletions
+11
View File
@@ -19,6 +19,17 @@ export const FIREFOX = ua.indexOf('firefox') !== -1;
*/
export const SAFARI = ua.indexOf('safari') !== -1 && ua.indexOf('chrom') == -1;
/**
* https://bugs.webkit.org/show_bug.cgi?id=237906
* @type {boolean}
*/
export const SAFARI_BUG_237906 =
SAFARI &&
!!(
ua.indexOf('version/15.4') >= 0 ||
ua.match(/cpu (os|iphone os) 15_4 like mac os x/)
);
/**
* User agent string says we are dealing with a WebKit engine.
* @type {boolean}