mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
fix(settings): language can be changed in firefox, fixes #9514
This commit is contained in:
parent
86ec68bedb
commit
54bee67e03
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ export default {
|
||||||
const newLang = e.target.value;
|
const newLang = e.target.value;
|
||||||
this.user.preferences.language = newLang;
|
this.user.preferences.language = newLang;
|
||||||
await this.set('language');
|
await this.set('language');
|
||||||
window.location.href = '/';
|
setTimeout(() => window.location.href = '/');
|
||||||
},
|
},
|
||||||
async changeUser (attribute, updates) {
|
async changeUser (attribute, updates) {
|
||||||
await axios.put(`/api/v3/user/auth/update-${attribute}`, updates);
|
await axios.put(`/api/v3/user/auth/update-${attribute}`, updates);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue