diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 67ea54ba4..642587545 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -3175,7 +3175,7 @@ define([ * @param {Error} error */ Notebook.prototype.load_notebook_error = function (error) { - var isSanitized = false; + var isSanitized = true; this.events.trigger('notebook_load_failed.Notebook', error); var msg; if (error.name === utils.XHR_ERROR && error.xhr.status === 500) { @@ -3191,7 +3191,7 @@ define([ if (navigator.cookieEnabled == false){ msg = i18n.msg._("Jupyter requires cookies to work; please enable cookies" + " and refresh page. Learn more about enabling cookies. "); - isSanitized = true; + isSanitized = false; } dialog.modal({ notebook: this,