0.8/chrome/content/overlay.js
Back to the directory
/*
--------------------------------------------------------
Notify
--------------------------------------------------------
Copyright (C) 2006, Gemme.pl
http://notify.torino.pl/en/
All rights reserved.
See attached file: LICENCE.TXT
--------------------------------------------------------
*/
var NotifyOverlay = {
onMenuItemCommand: function()
{
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator);
var existingWindow = wm.getMostRecentWindow("notify:Sites");
if (existingWindow)
existingWindow.focus();
else
window.open("chrome://notify/content/notify.xul", "Notify", "centerscreen,chrome,resizable");
}
};
gNotify =
Components.classes['@torino.pl/notify;1']
.getService(Components.interfaces.nsINotify)
.wrappedJSObject;