From eabdba0c32eceaaada93a85982ff9b1c403c67e3 Mon Sep 17 00:00:00 2001 From: Stefan Machmeier Date: Sat, 4 May 2019 19:07:34 +0200 Subject: [PATCH] Add remote browser window support --- source/index.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/source/index.js b/source/index.js index 60179e6..fca7174 100644 --- a/source/index.js +++ b/source/index.js @@ -40,7 +40,9 @@ class ProgressBar { maximizable: false, width: 500, height: 170 - } + }, + + remoteWindow: null }; this._styleSelector = { @@ -243,8 +245,12 @@ class ProgressBar { } _createWindow() { - this._window = new BrowserWindow(this._options.browserWindow); - + if (this._options.remoteWindow) { + this._window = new this._options.remoteWindow(this._options.browserWindow); + } else { + this._window = new BrowserWindow(this._options.browserWindow); + } + this._window.setMenu(null); if(this._options.debug){