Show error when html5.js can't be loaded

This commit is contained in:
Lennart Kats 2015-12-09 09:14:54 +00:00
parent 231b778758
commit 17e979bf3f
3 changed files with 8 additions and 6 deletions

10
node_modules/architect/architect.js generated vendored
View File

@ -277,11 +277,9 @@ else (function () {
});
}
function resolveConfig(config, base, callback) {
if (typeof base == "function") {
callback = base;
base = "";
}
function resolveConfig(config, base, callback, errback) {
if (typeof base == "function")
return resolveConfig(config, "", arguments[1], arguments[2]);
var paths = [], pluginIndexes = {};
config.forEach(function (plugin, index) {
@ -306,7 +304,7 @@ else (function () {
plugin.consumes = module.consumes || [];
});
callback(null, config);
});
}, errback);
}
}());

View File

@ -90,6 +90,7 @@
"c9.ide.imgeditor": "#612e75ef4f",
"c9.ide.immediate": "#a962119bec",
"c9.ide.installer": "#0fde9f0067",
"c9.ide.language.python": "#undefined",
"c9.ide.mount": "#b9a5a2d45c",
"c9.ide.navigate": "#38ae100ea1",
"c9.ide.newresource": "#981a408a7b",

View File

@ -109,6 +109,9 @@
if (window.hideLoader)
window.hideLoader();
}
}, function loadError(mod) {
if (mod.id === "plugins/c9.ide.clipboard/html5")
return alert("Unable to load html5.js.\n\nThis may be caused by a false positive in your virus scanner. Please try reloading with ?unpacked=1 added to the URL.");
});
});
</script>