Tweak code
This commit is contained in:
parent
aada1148fb
commit
92282daa9e
|
|
@ -9,6 +9,5 @@ import './element'
|
||||||
import './logout'
|
import './logout'
|
||||||
|
|
||||||
window.addEventListener('load', () => {
|
window.addEventListener('load', () => {
|
||||||
// @ts-ignore
|
|
||||||
$('[data-toggle="tooltip"]').tooltip()
|
$('[data-toggle="tooltip"]').tooltip()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// KEEP THIS FILE DEPENDENCIES FREE!
|
// KEEP THIS FILE DEPENDENCY-FREE!
|
||||||
|
|
||||||
const init: RequestInit = {
|
const init: RequestInit = {
|
||||||
credentials: 'same-origin',
|
credentials: 'same-origin',
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
const chooser: HTMLInputElement | null =
|
const chooser = document.querySelector<HTMLInputElement>('#language-chooser')
|
||||||
document.querySelector('#language-chooser')
|
|
||||||
if (chooser) {
|
if (chooser) {
|
||||||
chooser.addEventListener('change', () => {
|
chooser.addEventListener('change', () => {
|
||||||
window.location.href = `?lang=${chooser.value}`
|
window.location.href = `?lang=${chooser.value}`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user