mirror of
https://github.com/voltbonn/diversity.volt.link.git
synced 2024-06-28 17:00:55 +00:00
fix: needed to query from document
This commit is contained in:
parent
84351ce496
commit
99c8a3c1da
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue