mirror of
https://github.com/rhysd/Mstdn.git
synced 2025-02-01 05:52:11 +01:00
delay showing a window until DOM is ready
This commit is contained in:
parent
cf8d587248
commit
b23723ecf3
@ -21,6 +21,9 @@ export class App {
|
||||
}
|
||||
|
||||
open() {
|
||||
this.win.webContents.on('dom-ready', () => {
|
||||
this.win.show();
|
||||
});
|
||||
this.win.loadURL(`https://${this.account.host}${this.account.default_page}`);
|
||||
this.win.webContents.on('will-navigate', (e, url) => {
|
||||
if (!url.startsWith(`https://${this.account.host}`)) {
|
||||
@ -49,7 +52,6 @@ export class App {
|
||||
callback(granted);
|
||||
});
|
||||
});
|
||||
this.win.show();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user