mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 19:23:52 +00:00
[PM-8582] Move Safari browser check to libs/platform (#11007)
This commit is contained in:
7
libs/platform/src/services/browser-service.ts
Normal file
7
libs/platform/src/services/browser-service.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function isBrowserSafariApi(): boolean {
|
||||
return (
|
||||
navigator.userAgent.indexOf(" Safari/") !== -1 &&
|
||||
navigator.userAgent.indexOf(" Chrome/") === -1 &&
|
||||
navigator.userAgent.indexOf(" Chromium/") === -1
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user