diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-04 15:11:34 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-04 15:48:03 +0900 |
commit | e911d2772c3c8620c0d6207165f1000256a1ae5c (patch) | |
tree | 9059b4e96ac8174e75ac0a2300bff241dc14a6d8 /src/background | |
parent | ac1a37aeec0a04272e57d6600ff31595e62ad89c (diff) |
Show alert on opening about:home
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/usecases/operation.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/background/usecases/operation.js b/src/background/usecases/operation.js index 480dd08..73e4111 100644 --- a/src/background/usecases/operation.js +++ b/src/background/usecases/operation.js @@ -193,6 +193,10 @@ 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); } |