Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Fix (#293): correct a problem making the app unusable in latests versions of electron #294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions AhMyth-Server/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ function createWindow() {
toolbar: false,
fullscreen: false,
webPreferences: {
nodeIntegration: true
nodeIntegration: true,
enableRemoteModule: true,
contextIsolation: false
}
});

Expand Down Expand Up @@ -70,7 +72,9 @@ function createWindow() {
transparent: true,
frame: false,
webPreferences: {
nodeIntegration: true
nodeIntegration: true,
enableRemoteModule: true,
contextIsolation: false
}
});

Expand Down Expand Up @@ -158,7 +162,9 @@ ipcMain.on('SocketIO:Listen', function (event, port) {
resizable: false,
toolbar: false,
webPreferences: {
nodeIntegration: true
nodeIntegration: true,
enableRemoteModule: true,
contextIsolation: false
}
});

Expand Down Expand Up @@ -223,7 +229,9 @@ ipcMain.on('openLabWindow', function (e, page, index) {
resizable: false,
frame: false,
webPreferences: {
nodeIntegration: true
nodeIntegration: true,
enableRemoteModule: true,
contextIsolation: false
}
})

Expand Down