Commit 60131dba authored by Matthew Odle's avatar Matthew Odle

add reload on error

parent 814079c2
......@@ -7,9 +7,8 @@
* init/runner.js accomplishes this.
*/
var libsPath = '../canvas-libs/app/scripts/';
// var libsPath = 'https://glcdn.githack.com/taciturn-pachyderm/canvas-libs/raw/v2.2.0/app/scripts/';
// var libsPath = '../canvas-libs/app/scripts/';
var libsPath = 'libs/app/scripts/';
var scriptsPath = 'app/scripts/';
var libs = [
......@@ -63,7 +62,7 @@ function loadScript (path, file) {
var script = document.createElement("script");
script.src = path + file;
document[targetDomObject].appendChild(script);
console.log(script.src, 'added to', targetDomObject);
// console.log(script.src, 'added to', targetDomObject);
};
libs.forEach(file => loadScript(libsPath, file));
......
libsInit.run();
init.run();
try {
libsInit.run();
init.run();
} catch(err) {
window.location.href = window.location.href
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment