diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-05 20:43:52 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-05 20:43:52 +0900 |
commit | 740e123b36bab2a50282e73b0a20ec6863590f8f (patch) | |
tree | e861f7ade59a42a711ecb0d2474d06054144873c /src/background/actions/operation.js | |
parent | 21c28e668ef6fa6ca384f5bc67bcba1f22f26d57 (diff) |
Use openerTabId for view-source
Diffstat (limited to 'src/background/actions/operation.js')
-rw-r--r-- | src/background/actions/operation.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |