this SHOULD work, hopefully

This commit is contained in:
child_duckling 2022-01-22 21:53:37 -08:00
parent 4520ec549f
commit aa83f2d747
2 changed files with 12 additions and 23 deletions

View file

@ -411,6 +411,14 @@ export class Win {
this.win.setFullScreen(flag)
})
electron.ipcMain.on('play', (event, type, id) => {
this.win.webContents.executeJavaScript(`
MusicKit.getInstance().setQueue({ ${type}: '${id}'}).then(function(queue) {
MusicKit.getInstance().play();
});
`)
})
function getIp() {
let ip = false;
let alias = 0;
@ -488,7 +496,6 @@ export class Win {
return { action: "deny" };
});
}
private async broadcastRemote() {
function getIp() {
let ip :any = false;