mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
653 - fix user agent detection for Edge (#654)
* 653 - fix user agent detection for Edge * Update edge detection to only new version * update jslib * update jslib * fix jslib ref constructor
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: fa2b8e834b...5e0a2d1d99
@@ -106,7 +106,7 @@ const cipherService = new CipherService(cryptoService, userService, settingsServ
|
|||||||
const folderService = new FolderService(cryptoService, userService, apiService, storageService,
|
const folderService = new FolderService(cryptoService, userService, apiService, storageService,
|
||||||
i18nService, cipherService);
|
i18nService, cipherService);
|
||||||
const collectionService = new CollectionService(cryptoService, userService, storageService, i18nService);
|
const collectionService = new CollectionService(cryptoService, userService, storageService, i18nService);
|
||||||
searchService = new SearchService(cipherService, platformUtilsService);
|
searchService = new SearchService(cipherService);
|
||||||
const policyService = new PolicyService(userService, storageService);
|
const policyService = new PolicyService(userService, storageService);
|
||||||
const vaultTimeoutService = new VaultTimeoutService(cipherService, folderService, collectionService,
|
const vaultTimeoutService = new VaultTimeoutService(cipherService, folderService, collectionService,
|
||||||
cryptoService, platformUtilsService, storageService, messagingService, searchService, userService, tokenService,
|
cryptoService, platformUtilsService, storageService, messagingService, searchService, userService, tokenService,
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
|
|||||||
this.browserCache = DeviceType.FirefoxBrowser;
|
this.browserCache = DeviceType.FirefoxBrowser;
|
||||||
} else if (navigator.userAgent.indexOf(' OPR/') >= 0) {
|
} else if (navigator.userAgent.indexOf(' OPR/') >= 0) {
|
||||||
this.browserCache = DeviceType.OperaBrowser;
|
this.browserCache = DeviceType.OperaBrowser;
|
||||||
} else if (navigator.userAgent.indexOf(' Edge/') !== -1) {
|
} else if (navigator.userAgent.indexOf(' Edg/') !== -1) {
|
||||||
this.browserCache = DeviceType.EdgeBrowser;
|
this.browserCache = DeviceType.EdgeBrowser;
|
||||||
} else if (navigator.userAgent.indexOf(' Vivaldi/') !== -1) {
|
} else if (navigator.userAgent.indexOf(' Vivaldi/') !== -1) {
|
||||||
this.browserCache = DeviceType.VivaldiBrowser;
|
this.browserCache = DeviceType.VivaldiBrowser;
|
||||||
|
|||||||
Reference in New Issue
Block a user