mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
Injectable BrowserWindow constructor in AtomWindow
This commit is contained in:
parent
45770f1fe6
commit
0b0d3485ae
@ -50,7 +50,9 @@ class AtomWindow extends EventEmitter {
|
||||
if (this.shouldAddCustomTitleBar()) options.titleBarStyle = 'hidden'
|
||||
if (this.shouldAddCustomInsetTitleBar()) options.titleBarStyle = 'hiddenInset'
|
||||
if (this.shouldHideTitleBar()) options.frame = false
|
||||
this.browserWindow = new BrowserWindow(options)
|
||||
|
||||
const BrowserWindowConstructor = settings.browserWindowConstructor || BrowserWindow
|
||||
this.browserWindow = new BrowserWindowConstructor(options)
|
||||
|
||||
Object.defineProperty(this.browserWindow, 'loadSettingsJSON', {
|
||||
get: () => JSON.stringify(Object.assign({
|
||||
|
Loading…
Reference in New Issue
Block a user