Skip to content

Build your personal knowledge base with Trilium Notes

fix declaring global variables on the setup page, closes #1071

zadamf54f6d09b05e
diff --git a/src/views/setup.ejs b/src/views/setup.ejs
index ddbd94cfd3..c5c7501ad0 100644
--- a/src/views/setup.ejs
+++ b/src/views/setup.ejs
@@ -193,10 +193,11 @@
</div>
<script type="text/javascript">
- const glob = {
+ window.glob = {
sourceId: ''
};
- const syncInProgress = <%= syncInProgress ? 'true' : 'false' %>;
+
+ window.syncInProgress = <%= syncInProgress ? 'true' : 'false' %>;
</script>
<!-- Required for correct loading of scripts in Electron -->