mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-27 04:03:00 +02:00
Fix potential reference error by restoring the typeof check for chrome
This commit is contained in:
parent
35e9193152
commit
186eb392fc
@ -64,7 +64,7 @@ export class PopupUtilsService {
|
||||
href = win.location.href;
|
||||
}
|
||||
|
||||
if (chrome?.windows?.create != null) {
|
||||
if (typeof chrome !== "undefined" && chrome?.windows?.create != null) {
|
||||
if (href.indexOf("?uilocation=") > -1) {
|
||||
href = href
|
||||
.replace("uilocation=popup", "uilocation=popout")
|
||||
|
Loading…
Reference in New Issue
Block a user