mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Don’t load browser-script again if it’s already the correct language (#15263)
This commit is contained in:
@@ -259,6 +259,11 @@ export default {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (window && window['habitica-i18n']) {
|
||||||
|
if (this.user.preferences.language === window['habitica-i18n'].language.code) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
return axios.get(
|
return axios.get(
|
||||||
'/api/v4/i18n/browser-script',
|
'/api/v4/i18n/browser-script',
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user