Add Language List selected on load

This commit is contained in:
Maroxy 2021-10-23 14:32:19 +02:00
parent c7106863fd
commit fc01a7daeb

View file

@ -25,6 +25,7 @@ $(() => {
}); });
$(`#voice-list option[value="${Genshinlib.getConfig().lang.voice}"]`).prop('selected', true); $(`#voice-list option[value="${Genshinlib.getConfig().lang.voice}"]`).prop('selected', true);
$(`#language-list option[value="${Genshinlib.getConfig().lang.launcher}"]`).prop('selected', true);
$('#voice-list').on('change', (e) => { $('#voice-list').on('change', (e) => {
let activeVP = Genshinlib.getConfig().lang.voice; let activeVP = Genshinlib.getConfig().lang.voice;