Skip to content

Commit

Permalink
Fix Safari bug: use lower-cased language
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Onyshchenko committed Jan 5, 2017
1 parent f9b75d3 commit 0053fbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/device-uuid.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@

this.getLaguage = function () {
var ua = this;
ua.Agent.language = navigator.language || navigator.userLanguage || navigator.browserLanguage || navigator.systemLanguage || '';
ua.Agent.language = (navigator.language || navigator.userLanguage || navigator.browserLanguage || navigator.systemLanguage || '').toLowerCase();
};

this.getColorDepth = function () {
Expand Down Expand Up @@ -1037,4 +1037,4 @@
exports.DeviceUUID = DeviceUUID;
return new DeviceUUID(navigator.userAgent);

})(this);
})(this);
Loading

0 comments on commit 0053fbd

Please sign in to comment.