mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
16 lines
624 B
JavaScript
16 lines
624 B
JavaScript
|
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);
|