Support launch URLs, Fixes

This commit is contained in:
Natsumi
2022-09-14 22:43:58 +12:00
parent 6206d8ac8a
commit e61fa926c5
5 changed files with 25 additions and 19 deletions

View File

@@ -19365,16 +19365,16 @@ speechSynthesis.getVoices();
}
});
$app.methods.eventLaunchCommand = function (command) {
$app.methods.eventLaunchCommand = function (input) {
if (!API.isLoggedIn) {
return;
}
var args = command.split('/');
var args = input.split('/');
var command = args[0];
var commandArg = args[1];
switch (command) {
case 'world':
this.showWorldDialog(commandArg);
this.directAccessWorld(input.replace('world/', ''));
break;
case 'avatar':
this.showAvatarDialog(commandArg);