Skip to content

Commit

Permalink
Fix potential reference error by restoring the typeof check for chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
gbubemismith committed Oct 13, 2023
1 parent 35e9193 commit 186eb39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/browser/src/popup/services/popup-utils.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 186eb39

Please sign in to comment.