]>
git.saurik.com Git - apple/mdnsresponder.git/blob - Clients/FirefoxExtension/extension/content/overlay.js
6 this.initialized
= true;
7 this.strings
= document
.getElementById("bonjour4firefox-strings");
9 onMenuItemCommand: function(e
)
11 var promptService
= Components
.classes
["@mozilla.org/embedcomp/prompt-service;1"].getService(Components
.interfaces
.nsIPromptService
);
12 promptService
.alert(window
, this.strings
.getString("helloMessageTitle"), this.strings
.getString("helloMessage"));
14 onToolbarButtonCommand: function(e
)
16 // just reuse the function above. you can change this, obviously!
17 bonjour4firefox
.onMenuItemCommand(e
);
21 window
.addEventListener("load", function(e
) { bonjour4firefox
.onLoad(e
); }, false);