mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Electron: Fixed playing mixed content in same player window session
This commit is contained in:
parent
47b8c1f068
commit
ec96201b2c
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ export class Main {
|
|||
Main.playerWindow.show();
|
||||
|
||||
Main.playerWindow.loadFile(path.join(__dirname, `${messageInfo.contentViewer}/index.html`));
|
||||
Main.playerWindow.on('ready-to-show', async () => {
|
||||
Main.playerWindow.once('ready-to-show', async () => {
|
||||
Main.playerWindow?.webContents?.send(messageInfo.rendererEvent, messageInfo.rendererMessage);
|
||||
});
|
||||
Main.playerWindow.on('closed', () => {
|
||||
|
@ -202,7 +202,7 @@ export class Main {
|
|||
else if (Main.playerWindow && messageInfo.contentViewer !== Main.playerWindowContentViewer) {
|
||||
Main.playerWindow.setTitle(windowTitle);
|
||||
Main.playerWindow.loadFile(path.join(__dirname, `${messageInfo.contentViewer}/index.html`));
|
||||
Main.playerWindow.on('ready-to-show', async () => {
|
||||
Main.playerWindow.once('ready-to-show', async () => {
|
||||
Main.playerWindow?.webContents?.send(messageInfo.rendererEvent, messageInfo.rendererMessage);
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue