mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
15 lines
401 B
JavaScript
15 lines
401 B
JavaScript
function install( aEvent, extName, iconURL) {
|
|
var p = new XMLHttpRequest();
|
|
p.open("GET", "/core/install.php?uri="+aEvent.target.href, false);
|
|
p.send(null);
|
|
|
|
var params = new Array();
|
|
params[extName] = {
|
|
URL: aEvent.target.href,
|
|
IconURL: iconURL,
|
|
toString: function () { return this.URL; }
|
|
};
|
|
InstallTrigger.install(params);
|
|
return false;
|
|
}
|