diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-04 16:04:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-04 16:04:50 +0900 |
commit | 7c99569b0c21869d5e98a3ddcc6166d4a2963252 (patch) | |
tree | 9059b4e96ac8174e75ac0a2300bff241dc14a6d8 /src/background | |
parent | c404bbba220179f0323d57d2349f2b0648f58da0 (diff) | |
parent | e911d2772c3c8620c0d6207165f1000256a1ae5c (diff) |
Merge pull request #533 from ueokande/qa-0.20
QA 0.20
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/usecases/operation.js | 6 |
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); } } } |