mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 15:24:10 +01:00
Show a sensible error message when :extupdate is not available. Closes issue #79.
--HG-- extra : rebase_source : 912736e0c9146a6eca72285c21db3a195ed94f3a
This commit is contained in:
@@ -1445,6 +1445,8 @@ const Dactyl = Module("dactyl", {
|
||||
|
||||
const updateAddons = Class("UpgradeListener", {
|
||||
init: function init(addons) {
|
||||
dactyl.assert(!addons.length || addons[0].findUpdates,
|
||||
"Not available on " + config.host + " " + services.get("runtime").version);
|
||||
this.remaining = addons;
|
||||
this.upgrade = [];
|
||||
dactyl.echomsg("Checking updates for addons: " + addons.map(function (a) a.name).join(", "));
|
||||
|
||||
Reference in New Issue
Block a user