mirror of
https://github.com/zadam/trilium.git
synced 2026-01-01 12:14:24 +01:00
23 lines
950 B
Plaintext
23 lines
950 B
Plaintext
<script type="text/javascript">
|
|
global = globalThis; /* fixes https://github.com/webpack/webpack/issues/10035 */
|
|
|
|
window.glob = {
|
|
device: "<%= device %>",
|
|
baseApiUrl: 'api/',
|
|
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 %>
|
|
};
|
|
</script> |