1
0
Fork 0
mirror of https://github.com/voltbonn/diversity.volt.link.git synced 2024-06-25 23:40:57 +00:00

fix: needed to query from document

This commit is contained in:
thomasrosen 2022-11-22 01:30:39 +01:00
parent 84351ce496
commit 99c8a3c1da

View file

@ -722,7 +722,7 @@ languageChooserSelect.addEventListener('change', e => {
})
function selectLanguageInSelector() {
const html_node = languageChooserSelect.querySelector('html')
const html_node = document.querySelector('html')
html_node.setAttribute('lang', window._language_)
const optionEles = languageChooserSelect.querySelectorAll('option')