Skip to content

Commit

Permalink
core/window/interface: small ie support removal (#37207)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed Dec 13, 2021
1 parent a8a2e50 commit 72c6297
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/window/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ export class WindowInterface {
* @return {string}
*/
static getUserLanguage(win) {
// The `navigator.userLanguage` is only supported by IE. The standard is
// the `navigator.language`.
return win.navigator['userLanguage'] || win.navigator.language;
return win.navigator.language;
}

/**
Expand Down

0 comments on commit 72c6297

Please sign in to comment.