Add debug command

This commit is contained in:
2019-07-03 21:36:32 +02:00
parent 210fab5aee
commit 6649630754
3 changed files with 20 additions and 1 deletions

View File

@@ -82,6 +82,10 @@ class BrowserMod {
this.update(msg);
break;
case "debug":
this.debug(msg);
break;
case "play":
this.play(msg);
break;
@@ -134,6 +138,11 @@ class BrowserMod {
return "playing";
}
debug(msg) {
popUp(`deviceID`, {type: "markdown", content: `# ${deviceID}`})
alert(deviceID);
}
play(msg) {
const src = msg.media_content_id;
if(src)