Added "Quit" button to the webremote screen

with a ios style popup confirmation
This commit is contained in:
Onur Gümüş 2022-01-22 18:48:04 +03:00
parent db8ece0b2a
commit b924bef651
5 changed files with 95 additions and 0 deletions

View file

@ -230,6 +230,9 @@ export class wsapi {
case "get-currentmediaitem":
this._win.webContents.executeJavaScript(`wsapi.getPlaybackState()`);
break;
case "quit":
electron.app.quit();
break;
}
ws.send(JSON.stringify(response));
});