Restart playlet from web app
This commit is contained in:
1 parent
72f547cc22
commit
4c90cf1e98
2 files changed
+17
-2
No files matched your search
@@ -8,6 +8,15 @@ export class ExternalControlProtocol {
|
||||
body: '',
|
||||
})
|
||||
}
|
||||
|
||||
static async restartApp(appId) {
|
||||
console.log("Restarting app", appId)
|
||||
return fetch(`http://${getIp()}:8060/launch/${appId}?restart=true`, {
|
||||
method: 'POST',
|
||||
body: '',
|
||||
})
|
||||
}
|
||||
|
||||
static async pressKey(key) {
|
||||
return fetch(`http://${getIp()}:8060/keypress/${key}`, {
|
||||
method: 'POST',
|
||||
|
||||
Reference in new issue
Block a user