gecko/browser/base/content/tabcandy/app/overlay.js

16 lines
624 B
JavaScript
Raw Normal View History

2010-02-24 01:47:55 -08:00
var tabcandy = {
onLoad: function() {
// initialization code
this.initialized = true;
this.strings = document.getElementById("tabcandy-strings");
},
onMenuItemCommand: function(e) {
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService);
promptService.alert(window, this.strings.getString("helloMessageTitle"),
this.strings.getString("helloMessage"));
},
};
window.addEventListener("load", function(e) { tabcandy.onLoad(e); }, false);