[Bootstrap] Only inject in main windows

This commit is contained in:
Ducko 2022-04-21 22:46:08 +01:00
parent c20233e008
commit e06e1abda8

1
src/bootstrap.js vendored
View file

@ -45,6 +45,7 @@ const startCore = () => {
app.on('browser-window-created', (e, bw) => { // Main window injection
bw.webContents.on('dom-ready', () => {
if (!bw.resizable) return; // Main window only
splash.pageReady(); // Override Core's pageReady with our own on dom-ready to show main window earlier
const [ channel, hash ] = oaVersion.split('-'); // Split via -