Skip to content

Commit

Permalink
fix: issue 231 (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamberk authored Dec 28, 2019
1 parent c38a816 commit 1f815ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/DOMutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export function drawBar (x, y, width, height, className, JSONcontainer, svgConta
* @returns {string}
*/
export function getNavigatorLanguage() {
if (!navigator) return 'en';
if (navigator.languages && navigator.languages.length) {
return navigator.languages;
} else {
Expand Down

0 comments on commit 1f815ef

Please sign in to comment.