diff options
Diffstat (limited to 'src/background/actions')
-rw-r--r-- | src/background/actions/operation.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/background/actions/operation.js b/src/background/actions/operation.js index 56eb168..c477ce7 100644 --- a/src/background/actions/operation.js +++ b/src/background/actions/operation.js @@ -77,6 +77,11 @@ const exec = (operation, tab) => { return browser.tabs.sendMessage(tab.id, { type: messages.CONSOLE_HIDE, }); + case operations.PAGE_SOURCE: + return browser.tabs.create({ + url: 'view-source:' + tab.url, + index: tab.index + 1 + }); default: return Promise.resolve(); } |