Protect the three call to custom.js

pull/1378/head
Pierre Gerold 10 years ago
parent be52aa38f9
commit fcec0896ce

@ -25,7 +25,13 @@ require([
notificationarea
){
"use strict";
requirejs(['custom/custom'], function() {});
try {
requirejs(['custom/custom'], function() {});
} catch(err) {
console.log("Error loading custom.js from edition service. Continuing and logging");
console.warn(err);
}
page = new page.Page();

@ -56,8 +56,8 @@ require([
try{
requirejs(['custom/custom'], function() {});
} catch(err) {
console.warn("Error processing custom.js file. Logging the error and continuing")
console.log(err);
console.log("Error processing custom.js. Logging and continuing")
console.warn(err);
}
// compat with old IPython, remove for IPython > 3.0

@ -30,7 +30,12 @@ require([
newnotebook,
loginwidget){
"use strict";
requirejs(['custom/custom'], function() {});
try{
requirejs(['custom/custom'], function() {});
} catch(err) {
console.log("Error loading custom.js from tree service. Continuing and logging");
console.warn(err);
}
// Setup all of the config related things

Loading…
Cancel
Save