Commit 62391c31 authored by Romain Casati's avatar Romain Casati
Browse files

Properly waiting for notebook loading.

parent d6ed4f73
......@@ -76,6 +76,12 @@ function(Basthon, BasthonGoodies, pako, Base64, dialog) {
/* all errors redirected to notification system */
that.connectGlobalErrors();
if( !that.notebook._fully_loaded ) {
await new Promise(function (resolve, reject) {
that.events.on('notebook_loaded.Notebook', resolve);
});
}
const init = that.initCaller;
/*
loading content from query string or from local storage.
......
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