mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-13 23:33:33 +02:00
Fix assertion in addons.jsm.
This commit is contained in:
@@ -110,7 +110,7 @@ var actions = {
|
|||||||
name: "extr[ehash]",
|
name: "extr[ehash]",
|
||||||
description: "Reload an extension",
|
description: "Reload an extension",
|
||||||
action: function (addon) {
|
action: function (addon) {
|
||||||
dactyl.assert(dactyl.has("Gecko2"), "This command is not useful in this version of " + config.host);
|
util.assert(util.haveGecko("2b"), "This command is not useful in this version of " + config.host);
|
||||||
util.timeout(function () {
|
util.timeout(function () {
|
||||||
addon.userDisabled = true;
|
addon.userDisabled = true;
|
||||||
addon.userDisabled = false;
|
addon.userDisabled = false;
|
||||||
@@ -521,7 +521,7 @@ else
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getInstallForURL: function (url, callback, mimetype) {
|
getInstallForURL: function (url, callback, mimetype) {
|
||||||
dactyl.assert(false, "Install by URL not implemented");
|
util.assert(false, "Install by URL not implemented");
|
||||||
},
|
},
|
||||||
observers: [],
|
observers: [],
|
||||||
addAddonListener: function (listener) {
|
addAddonListener: function (listener) {
|
||||||
|
|||||||
Reference in New Issue
Block a user