<script type="text/javascript">
    global = globalThis; /* fixes https://github.com/webpack/webpack/issues/10035 */

    window.glob = {
        device: "<%= device %>",
        baseApiUrl: "<%= baseApiUrl %>",
        activeDialog: null,
        maxEntityChangeIdAtLoad: <%= maxEntityChangeIdAtLoad %>,
        maxEntityChangeSyncIdAtLoad: <%= maxEntityChangeSyncIdAtLoad %>,
        instanceName: '<%= instanceName %>',
        csrfToken: '<%= csrfToken %>',
        isDev: <%= isDev %>,
        appCssNoteIds: <%- JSON.stringify(appCssNoteIds) %>,
        isMainWindow: <%= isMainWindow %>,
        isProtectedSessionAvailable: <%= isProtectedSessionAvailable %>,
        triliumVersion: "<%= triliumVersion %>",
        assetPath: "<%= assetPath %>",
        appPath: "<%= appPath %>",
        platform: "<%= platform %>",
        hasNativeTitleBar: <%= hasNativeTitleBar %>,
        TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %>,
        isRtl: <%= !!currentLocale.rtl %>
    };
</script>