From d5f655ba440e078318c01792ce38bc08817ce8e6 Mon Sep 17 00:00:00 2001 From: Pulux Date: Mon, 17 Apr 2023 13:39:03 +0200 Subject: [PATCH] add missing statement to find Lona in templates --- lona_bootstrap_5/templates/bootstrap_5/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lona_bootstrap_5/templates/bootstrap_5/main.js b/lona_bootstrap_5/templates/bootstrap_5/main.js index 8134e7f..d37b040 100644 --- a/lona_bootstrap_5/templates/bootstrap_5/main.js +++ b/lona_bootstrap_5/templates/bootstrap_5/main.js @@ -1,4 +1,5 @@ // setup lona context --------------------------------------------------------- +window.addEventListener('load', () => { var lona_context = new Lona.LonaContext({ target: '#lona', title: '{{ settings.BOOTSTRAP_5_TITLE }}', @@ -148,4 +149,5 @@ lona_context.add_message_handler(function(lona_context, raw_message) { }); // init ----------------------------------------------------------------------- -lona_context.setup(); \ No newline at end of file +lona_context.setup(); +});