Skip to content

Commit

Permalink
On firefox && chrome, no htmlTag.lang will be empty string and not null
Browse files Browse the repository at this point in the history
  • Loading branch information
Shallowmallow committed Aug 31, 2024
1 parent 3ef44c0 commit d8d32eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haxe/ui/backend/PlatformImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PlatformImpl extends PlatformBase {
systemLocale = htmlTag.lang;
}

if (systemLocale == null) {
if (systemLocale == null || systemLocale == "" ) {
systemLocale = Browser.navigator.language;
}
return systemLocale;
Expand Down

0 comments on commit d8d32eb

Please sign in to comment.