Add debug command
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user