mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix webpack build
This commit is contained in:
parent
a232035d47
commit
3f307b117e
@ -59,6 +59,7 @@ async function createMainWindow() {
|
||||
height: mainWindowState.height,
|
||||
title: 'Trilium Notes',
|
||||
webPreferences: {
|
||||
enableRemoteModule: true,
|
||||
nodeIntegration: true,
|
||||
contextIsolation: false,
|
||||
spellcheck: spellcheckEnabled
|
||||
|
@ -41,6 +41,8 @@
|
||||
<%- include('dialogs/delete_notes.ejs') %>
|
||||
|
||||
<script type="text/javascript">
|
||||
global = globalThis; /* fixes https://github.com/webpack/webpack/issues/10035 */
|
||||
|
||||
window.baseApiUrl = 'api/';
|
||||
window.device = "desktop";
|
||||
window.glob = {
|
||||
|
@ -105,6 +105,8 @@
|
||||
<%- include('dialogs/confirm.ejs') %>
|
||||
|
||||
<script type="text/javascript">
|
||||
global = globalThis; /* fixes https://github.com/webpack/webpack/issues/10035 */
|
||||
|
||||
window.baseApiUrl = 'api/';
|
||||
window.device = "mobile";
|
||||
window.glob = {
|
||||
|
@ -189,6 +189,8 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
global = globalThis; /* fixes https://github.com/webpack/webpack/issues/10035 */
|
||||
|
||||
window.glob = {
|
||||
sourceId: ''
|
||||
};
|
||||
|
@ -11,5 +11,5 @@ module.exports = {
|
||||
filename: 'desktop.js'
|
||||
},
|
||||
devtool: 'source-map',
|
||||
target: 'electron-main'
|
||||
target: 'electron-renderer'
|
||||
};
|
||||
|
@ -11,5 +11,5 @@ module.exports = {
|
||||
filename: 'mobile.js'
|
||||
},
|
||||
devtool: 'source-map',
|
||||
target: 'electron-main'
|
||||
target: 'electron-renderer'
|
||||
};
|
||||
|
@ -11,5 +11,5 @@ module.exports = {
|
||||
filename: 'setup.js'
|
||||
},
|
||||
devtool: 'source-map',
|
||||
target: 'electron-main'
|
||||
target: 'electron-renderer'
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user