Skip to content

TagSpaces is an offline, open source, document manager with tagging support

making the app compatible with electron version 5

Ilian Sapundshiev1b6af2248fc3
diff --git a/app/main.dev.js b/app/main.dev.js
index 362ac6f3a..a3b3b3470 100644
--- a/app/main.dev.js
+++ b/app/main.dev.js
@@ -123,6 +123,9 @@ app.on('ready', async () => {
width: workerDevMode ? 800 : 1,
height: workerDevMode ? 600 : 1,
frame: false,
+ webPreferences: {
+ nodeIntegration: true
+ }
});
global.splashWorkerWindow.loadURL(`file://${__dirname}/splash.html`);
@@ -145,7 +148,11 @@ app.on('ready', async () => {
y: mainWindowState.y,
width: mainWindowState.width,
height: mainWindowState.height,
- icon: path.join(__dirname, 'assets/icons/128x128.png')
+ icon: path.join(__dirname, 'assets/icons/128x128.png'),
+ webPreferences: {
+ nodeIntegration: true,
+ webviewTag: true
+ }
});
mainWindow.loadURL(mainHTML + startupParameter);