Skip to content

Commit 2f928f0

Browse files
committed
wait until ready to load app
1 parent 94ccd29 commit 2f928f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dashboard/app/views/levels/_blockly.html.haml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,5 +227,7 @@
227227
};
228228
$.extend(appOptions, #{app_options.to_json});
229229
#{'console.log(appOptions)' unless Rails.env.production?};
230-
#{app}Main(appOptions);
230+
$(document).ready(function () {
231+
#{app}Main(appOptions);
232+
});
231233
//]]>

0 commit comments

Comments
 (0)