Import launch parameter

This commit is contained in:
Natsumi
2022-10-02 20:02:09 +13:00
parent 664a67e92c
commit 868ec6faf1
2 changed files with 23 additions and 2 deletions

View File

@@ -200,7 +200,8 @@ speechSynthesis.getVoices();
observerOptions: {
rootMargin: '0px',
threshold: 0.1
}
},
attempt: 3
});
Vue.use(DataTables);
@@ -19910,6 +19911,21 @@ speechSynthesis.getVoices();
case 'addavatardb':
this.addAvatarProvider(input.replace('addavatardb/', ''));
break;
case 'import':
var type = args[1];
if (!type) break;
var data = input.replace(`import/${type}/`, '');
if (type === 'avatar') {
this.showAvatarImportDialog();
this.worldImportDialog.input = data;
} else if (type === 'world') {
this.showWorldImportDialog();
this.worldImportDialog.input = data;
} else if (type === 'friend') {
this.showFriendImportDialog();
this.friendImportDialog.input = data;
}
break;
}
};