remove setLangAsync-method
This commit is contained in:
@@ -25,17 +25,6 @@ function postEnvelope(annotations) {
|
||||
return fetch(`/api/annotation`, options)
|
||||
}
|
||||
|
||||
async function setLangAsync(language, flagCode) {
|
||||
document.getElementById('selectedFlag').className = 'fi ' + flagCode + ' me-2';
|
||||
|
||||
await fetch(`/api/localization/lang/${language}`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
async function setLanguage(language) {
|
||||
|
||||
const hasLang = await fetch('/api/localization/lang', {
|
||||
|
||||
Reference in New Issue
Block a user