1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +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:
Chad Scharf
2020-09-15 10:31:12 -04:00
committed by GitHub
parent a1388ddab7
commit 41856ff6af
3 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
this.browserCache = DeviceType.FirefoxBrowser;
} else if (navigator.userAgent.indexOf(' OPR/') >= 0) {
this.browserCache = DeviceType.OperaBrowser;
} else if (navigator.userAgent.indexOf(' Edge/') !== -1) {
} else if (navigator.userAgent.indexOf(' Edg/') !== -1) {
this.browserCache = DeviceType.EdgeBrowser;
} else if (navigator.userAgent.indexOf(' Vivaldi/') !== -1) {
this.browserCache = DeviceType.VivaldiBrowser;