aboutsummaryrefslogtreecommitdiff
path: root/js/firefox/background-shim.js
diff options
context:
space:
mode:
authorEinar Egilsson <einar@einaregilsson.com>2015-09-27 22:45:48 +0000
committerEinar Egilsson <einar@einaregilsson.com>2015-09-27 22:45:48 +0000
commit36d4fe49ee7ff432fd0c270ddec5800d26c1ee5a (patch)
treea620ed0acad83c34fb852d421a5e5b304dfbed06 /js/firefox/background-shim.js
parent93591760d16543faa65c9cc1db0ba4490a443c62 (diff)
3.0.4
Diffstat (limited to 'js/firefox/background-shim.js')
-rw-r--r--js/firefox/background-shim.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/firefox/background-shim.js b/js/firefox/background-shim.js
index d43d662..3551e48 100644
--- a/js/firefox/background-shim.js
+++ b/js/firefox/background-shim.js
@@ -171,6 +171,9 @@ function attachedPage(worker) {
chrome.storage.local.set(message.payload, function(data) {
sendReply(message, data);
});
+ } else if (message.messageType == 'manifest.get') {
+ var p = require('package.json');
+ sendReply(message, p);
} else if (message.messageType == 'log.enabled') {
if (!message.payload.enabled) {
log('Logging has been disabled for Redirector');