this SHOULD work, hopefully
This commit is contained in:
parent
4520ec549f
commit
aa83f2d747
2 changed files with 12 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue