aboutsummaryrefslogtreecommitdiff
path: root/src/background/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/actions')
-rw-r--r--src/background/actions/operation.js5
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();
}