Skip to content

Commit d5f655b

Browse files
committed
add missing statement to find Lona in templates
1 parent db272b7 commit d5f655b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • lona_bootstrap_5/templates/bootstrap_5

lona_bootstrap_5/templates/bootstrap_5/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// setup lona context ---------------------------------------------------------
2+
window.addEventListener('load', () => {
23
var lona_context = new Lona.LonaContext({
34
target: '#lona',
45
title: '{{ settings.BOOTSTRAP_5_TITLE }}',
@@ -148,4 +149,5 @@ lona_context.add_message_handler(function(lona_context, raw_message) {
148149
});
149150

150151
// init -----------------------------------------------------------------------
151-
lona_context.setup();
152+
lona_context.setup();
153+
});

0 commit comments

Comments
 (0)