aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
Diffstat (limited to 'src/background')
-rw-r--r--src/background/presenters/tab.js12
-rw-r--r--src/background/usecases/link.js9
2 files changed, 1 insertions, 20 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
});