This commit is contained in:
peter
2019-08-12 16:51:20 +02:00
parent 97f23d5bc5
commit 71fa02d6db
8 changed files with 359 additions and 6 deletions
+2
View File
@@ -62,10 +62,12 @@ export class FrontblockConfigLib{
return res
} )()` )
}
private unhookGenerator(fnName, fnArgs): Function{
return eval( `( () => async (`+fnArgs+`) => {
const r = await this.socket.call("`+fnName+`", `+fnArgs+`)
const res = await this.parseResponse(r)
console.log(res)
if(res.uid != null)
this.socket.unhook(res.uid)
return res