diff --git a/source/index.js b/source/index.js index fca7174..572d061 100644 --- a/source/index.js +++ b/source/index.js @@ -39,10 +39,13 @@ class ProgressBar { minimizable: false, maximizable: false, width: 500, - height: 170 + height: 170, + webPreferences: { + nodeIntegration: true + }, }, - - remoteWindow: null + + remoteWindow: null }; this._styleSelector = { @@ -245,7 +248,7 @@ class ProgressBar { } _createWindow() { - if (this._options.remoteWindow) { + if (this._options.remoteWindow) { this._window = new this._options.remoteWindow(this._options.browserWindow); } else { this._window = new BrowserWindow(this._options.browserWindow);