Added "Quit" button to the webremote screen
with a ios style popup confirmation
This commit is contained in:
parent
db8ece0b2a
commit
b924bef651
5 changed files with 95 additions and 0 deletions
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue