From c2f4d0c887a4ca362ef1f29b2ec03eb0defcb687 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 7 Aug 2023 19:57:01 +1200 Subject: [PATCH] feat: Add local-favorite-world protocol type, focus window on dialog --- html/src/app.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/html/src/app.js b/html/src/app.js index a7036cd7..38de28ea 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -23801,6 +23801,15 @@ speechSynthesis.getVoices(); case 'group': this.showGroupDialog(commandArg); break; + case 'local-favorite-world': + console.log('local-favorite-world', commandArg); + var [id, group] = commandArg.split(':'); + API.getCachedWorld({ worldId: id }).then((args1) => { + this.directAccessWorld(id); + this.addLocalWorldFavorite(id, group); + return args1; + }); + break; case 'addavatardb': this.addAvatarProvider(input.replace('addavatardb/', '')); break;