feat: Add local-favorite-world protocol type, focus window on dialog

This commit is contained in:
Natsumi
2023-08-07 19:57:01 +12:00
parent 9e082145c5
commit c2f4d0c887

View File

@@ -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;