aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/background/usecases/operation.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/background/usecases/operation.js b/src/background/usecases/operation.js
index dd24e75..73e4111 100644
--- a/src/background/usecases/operation.js
+++ b/src/background/usecases/operation.js
@@ -193,11 +193,15 @@ export default class OperationInteractor {
let tab = await this.tabPresenter.getCurrent();
let result = await browser.browserSettings.homepageOverride.get({});
let us = urls.homepageUrls(result.value);
+ if (us.length === 1 && us[0] === 'about:home') {
+ // eslint-disable-next-line max-len
+ throw new Error('Cannot open Firefox Home (about:home) by WebExnteions, set your custom URLs');
+ }
if (us.length === 1 && !newTab) {
return this.tabPresenter.open(us[0], tab.id);
}
for (let u of us) {
- this.tabPresenter.create(u, { openerTabId: tab.id });
+ this.tabPresenter.create(u);
}
}
}