RetroZilla/extensions/cck/browser/resources/content/cckwizard/srcfiles/cck.js.in
2015-10-20 23:03:22 -04:00

27 lines
649 B
JavaScript

function getCCKLink(item)
{
var bundle = document.getElementById("bundle_cck");
return bundle.getString(item);
}
// urlPref: lets each application have its own throbber URL. example: "messenger.throbber.url"
// event: lets shift+click open it in a new window, etc.
function goClickThrobber( urlPref, e )
{
var url;
try {
var pref = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefBranch);
url = pref.getComplexValue(urlPref, Components.interfaces.nsIPrefLocalizedString).data;
}
catch(e) {
url = null;
}
if ( url )
openUILink(url, e);
}