projects
/
gssweb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Passing messages between the add-on and the content script
[gssweb.git]
/
firefox
/
data
/
navigator.gss.js
diff --git
a/firefox/data/navigator.gss.js
b/firefox/data/navigator.gss.js
index
5342e3e
..
7f3b4df
100644
(file)
--- a/
firefox/data/navigator.gss.js
+++ b/
firefox/data/navigator.gss.js
@@
-9,4
+9,10
@@
function addScript(url) {
addScript('chrome://gssweb/content/nav.gss.js');
+self.port.on('alert', function(message) {
+ console.log("Content script received message: " + message);
+ self.port.emit("gss_request", "Message back from the content script");
+});
+
+