Merge pull request +11019 from c9/error-html5

Show error when html5.js can't be loaded
smf-sdk
Lennart Kats 2016-01-04 09:43:03 +01:00
commit 5ef25b5bd6
2 zmienionych plików z 8 dodań i 7 usunięć

10
node_modules/architect/architect.js wygenerowano vendored
Wyświetl plik

@ -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);
}
}());

Wyświetl plik

@ -109,8 +109,11 @@
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 ?packed=1 added to the URL.");
});
});
</script>
</body>
</html>
</html>