From b3672f0ffd82148716b38d133f35a5f9d2706ba8 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 29 Jul 2018 13:13:11 +0900 Subject: Add buffer flags on buffer command and completion --- src/background/presenters/tab.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/background/presenters') diff --git a/src/background/presenters/tab.js b/src/background/presenters/tab.js index 6ad9736..bacb644 100644 --- a/src/background/presenters/tab.js +++ b/src/background/presenters/tab.js @@ -46,18 +46,6 @@ export default class TabPresenter { return browser.tabs.update(tabId, { active: true }); } - async selectAt(index) { - let tabs = await browser.tabs.query({ currentWindow: true }); - if (tabs.length < 2) { - return; - } - if (index < 0 || tabs.length <= index) { - throw new RangeError(`tab ${index + 1} does not exist`); - } - let id = tabs[index].id; - return browser.tabs.update(id, { active: true }); - } - remove(ids) { return browser.tabs.remove(ids); } -- cgit v1.2.3