We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0ae208 commit 37a5fa6Copy full SHA for 37a5fa6
src/popup/addEditInterface.js
@@ -285,16 +285,11 @@ function AddEditInterface(settingsModel) {
285
// view instance should be a Login
286
loginObj = new Login(settings);
287
288
- const currentTab = // only one tab should be active and in the current window
289
- (
290
- await browser.tabs.query({
291
- active: true,
292
- lastFocusedWindow: true,
293
- })
294
- )[0];
295
- const host = new URL(currentTab.url).host;
296
// prefill the host of the current tab
297
- loginObj.login = host;
+ if (settings.origin !== "null") {
+ const hostname = new URL(settings.origin).hostname;
+ loginObj.login = hostname;
+ }
298
}
299
300
// set the storePath and get tree dirs
0 commit comments