Update: 禁用nodeIntegrationInWorker

This commit is contained in:
王立帮
2024-09-20 01:04:06 +08:00
parent 57481d6d2c
commit 6ca04ecf8c
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ const chokidar = Mixly.require('chokidar');
class FileTreeExt extends FileTree {
static {
this.worker = new Worker('../common/modules/mixly-modules/workers/nodejs/node-file-watcher.js', {
/*this.worker = new Worker('../common/modules/mixly-modules/workers/nodejs/node-file-watcher.js', {
name: 'nodeFileWatcher'
});
this.watcherEventsRegistry = new Registry();
@@ -35,7 +35,7 @@ class FileTreeExt extends FileTree {
});
this.worker.addEventListener('error', (event) => {
Debug.error(event);
});
});*/
this.addEventListener = function(folderPath, func) {
FileTreeExt.watch(folderPath);

View File

@@ -81,7 +81,7 @@ function createWindow(filePath = null, indexUrl = null) {
allowRunningInsecureContent: true,
webPreferences: {
nodeIntegration: true,
nodeIntegrationInWorker: true,
nodeIntegrationInWorker: false,
allowRunningInsecureContent: true,
enableRemoteModule: true,
contextIsolation: false,