mirror of
https://github.com/voltbonn/diversity.volt.link.git
synced 2024-11-05 02:55:53 +00:00
fix: needed to query from document
This commit is contained in:
parent
84351ce496
commit
99c8a3c1da
1 changed files with 1 additions and 1 deletions
|
@ -722,7 +722,7 @@ languageChooserSelect.addEventListener('change', e => {
|
||||||
})
|
})
|
||||||
|
|
||||||
function selectLanguageInSelector() {
|
function selectLanguageInSelector() {
|
||||||
const html_node = languageChooserSelect.querySelector('html')
|
const html_node = document.querySelector('html')
|
||||||
html_node.setAttribute('lang', window._language_)
|
html_node.setAttribute('lang', window._language_)
|
||||||
|
|
||||||
const optionEles = languageChooserSelect.querySelectorAll('option')
|
const optionEles = languageChooserSelect.querySelectorAll('option')
|
||||||
|
|
Loading…
Reference in a new issue