Skip to content

Commit

Permalink
refactor: use navigator.language instead of navigator.languages
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou committed Jul 13, 2023
1 parent e3c3754 commit 584a357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/mixins/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default class BaseMixin extends Vue {
}

get browserLocale() {
return navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language
return navigator.language
}

get hours12Format() {
Expand Down

0 comments on commit 584a357

Please sign in to comment.