Move script setting app ID to before the rest of the head, to ensure it's loaded before any custom app scripts

This commit is contained in:
Andrew Kingston 2025-03-18 15:20:53 +00:00
parent e65f9e40b7
commit 8d8690cad1
No known key found for this signature in database
1 changed files with 4 additions and 6 deletions

View File

@ -5,14 +5,12 @@
}) })
</script> </script>
<head> <head>
<script nonce="{{ nonce }}">
window["##BUDIBASE_APP_ID##"] = "{{appId}}"
window["##BUDIBASE_APP_EMBEDDED##"] = "{{embedded}}"
</script>
{{{head}}} {{{head}}}
<style>{{{css}}}</style> <style>{{{css}}}</style>
</head> </head>
<script nonce="{{ nonce }}">
window["##BUDIBASE_APP_ID##"] = "{{appId}}"
window["##BUDIBASE_APP_EMBEDDED##"] = "{{embedded}}"
</script>
{{{body}}} {{{body}}}
</html> </html>