From 740e123b36bab2a50282e73b0a20ec6863590f8f Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 5 May 2018 20:43:52 +0900 Subject: Use openerTabId for view-source --- src/background/actions/operation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/background/actions/operation.js') diff --git a/src/background/actions/operation.js b/src/background/actions/operation.js index c477ce7..10c366f 100644 --- a/src/background/actions/operation.js +++ b/src/background/actions/operation.js @@ -80,7 +80,8 @@ const exec = (operation, tab) => { case operations.PAGE_SOURCE: return browser.tabs.create({ url: 'view-source:' + tab.url, - index: tab.index + 1 + index: tab.index + 1, + openerTabId: tab.id, }); default: return Promise.resolve(); -- cgit v1.2.3