diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/background/presenters/tab.js | 12 | ||||
-rw-r--r-- | src/background/usecases/link.js | 9 | ||||
-rw-r--r-- | src/shared/settings/default.js | 1 | ||||
-rw-r--r-- | src/shared/settings/properties.js | 3 |
4 files changed, 1 insertions, 24 deletions
diff --git a/src/background/presenters/tab.js b/src/background/presenters/tab.js index bacb644..69cae1c 100644 --- a/src/background/presenters/tab.js +++ b/src/background/presenters/tab.js @@ -85,18 +85,6 @@ export default class TabPresenter { return browser.tabs.setZoom(tabId, factor); } - async createAdjacent(url, { openerTabId, active }) { - let tabs = await browser.tabs.query({ - active: true, currentWindow: true - }); - return browser.tabs.create({ - url, - openerTabId, - active, - index: tabs[0].index + 1 - }); - } - onSelected(listener) { browser.tabs.onActivated.addListener(listener); } diff --git a/src/background/usecases/link.js b/src/background/usecases/link.js index af152fe..b8ed719 100644 --- a/src/background/usecases/link.js +++ b/src/background/usecases/link.js @@ -11,14 +11,7 @@ export default class LinkInteractor { return this.tabPresenter.open(url, tabId); } - async openNewTab(url, openerId, background) { - let settings = await this.settingRepository.get(); - let { adjacenttab } = settings.properties; - if (adjacenttab) { - return this.tabPresenter.createAdjacent(url, { - openerTabId: openerId, active: !background - }); - } + openNewTab(url, openerId, background) { return this.tabPresenter.create(url, { openerTabId: openerId, active: !background }); diff --git a/src/shared/settings/default.js b/src/shared/settings/default.js index 9ba2d64..4163064 100644 --- a/src/shared/settings/default.js +++ b/src/shared/settings/default.js @@ -74,7 +74,6 @@ export default { "properties": { "hintchars": "abcdefghijklmnopqrstuvwxyz", "smoothscroll": false, - "adjacenttab": true, "complete": "sbh" }, "blacklist": [ diff --git a/src/shared/settings/properties.js b/src/shared/settings/properties.js index 284de6c..96f10ac 100644 --- a/src/shared/settings/properties.js +++ b/src/shared/settings/properties.js @@ -5,7 +5,6 @@ const types = { hintchars: 'string', smoothscroll: 'boolean', - adjacenttab: 'boolean', complete: 'string', }; @@ -13,14 +12,12 @@ const types = { const defaults = { hintchars: 'abcdefghijklmnopqrstuvwxyz', smoothscroll: false, - adjacenttab: true, complete: 'sbn', }; const docs = { hintchars: 'hint characters on follow mode', smoothscroll: 'smooth scroll', - adjacenttab: 'open adjacent tabs', complete: 'which are completed at the open page', }; |