1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-04 10:43:47 +00:00

Fix potential reference error by restoring the typeof check for chrome

This commit is contained in:
gbubemismith
2023-10-13 12:11:59 -04:00
parent 35e9193152
commit 186eb392fc

View File

@@ -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")