Add debug command

This commit is contained in:
thomas committed 2019-07-03 21:37:50 +02:00
1 parent 210fab5aee
commit 6649630754
3 files changed
+20 -1

No files matched your search

+9
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)