mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-11 12:30:51 +08:00
Condom againt bad custom.js
This commit is contained in:
parent
89f942029d
commit
be52aa38f9
@ -52,8 +52,13 @@ require([
|
||||
|
||||
// Pull typeahead from the global jquery object
|
||||
var typeahead = $.typeahead;
|
||||
|
||||
requirejs(['custom/custom'], function() {});
|
||||
|
||||
try{
|
||||
requirejs(['custom/custom'], function() {});
|
||||
} catch(err) {
|
||||
console.warn("Error processing custom.js file. Logging the error and continuing")
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
// compat with old IPython, remove for IPython > 3.0
|
||||
window.CodeMirror = CodeMirror;
|
||||
|
Loading…
Reference in New Issue
Block a user