mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-19 12:24:41 +00:00
Don’t load browser-script again if it’s already the correct language (#15263)
This commit is contained in:
parent
1be169a105
commit
a601be0666
1 changed files with 5 additions and 0 deletions
|
|
@ -259,6 +259,11 @@ export default {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
if (window && window['habitica-i18n']) {
|
||||
if (this.user.preferences.language === window['habitica-i18n'].language.code) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return axios.get(
|
||||
'/api/v4/i18n/browser-script',
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue