1
0
Fork 0
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:
Michael Hollister 2025-06-17 23:37:07 -05:00
parent 47b8c1f068
commit ec96201b2c

View file

@ -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 {