Skip to content

Commit

Permalink
Merge pull request #12 from stefanDeveloper/master
Browse files Browse the repository at this point in the history
Add Remote BrowserWindow Support
  • Loading branch information
AndersonMamede authored Dec 8, 2020
2 parents 56ed56a + eabdba0 commit f8d283e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class ProgressBar {
maximizable: false,
width: 500,
height: 170
}
},

remoteWindow: null
};

this._styleSelector = {
Expand Down Expand Up @@ -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){
Expand Down

0 comments on commit f8d283e

Please sign in to comment.