Skip to content

Commit 2023c90

Browse files
committed
adjust syntax for searchInterface to pass window url to parseAuthUrl, browserpass#320
1 parent ad0d892 commit 2023c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/popup/searchinterface.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function view(ctl, params) {
3434
var self = this;
3535

3636
let url = "";
37-
const authUrl = helpers.parseAuthUrl((window && `${window.location.href}`) || null);
37+
const authUrl = helpers.parseAuthUrl(window?.location?.href ?? null);
3838
if (this.popup.settings.authRequested && authUrl) {
3939
url = new BrowserpassURL(authUrl);
4040
} else {

0 commit comments

Comments
 (0)