Skip to content

Commit

Permalink
Fix another device check error
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfire committed May 18, 2018
1 parent edf7d16 commit 5d862c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gameanalytics-node-sdk",
"description": "Unofficial GameAnalytics Node.js SDK using the REST API.",
"homepage": "https://github.com/goldfire/gameanalytics-node-sdk",
"version": "1.0.6",
"version": "1.0.7",
"keywords": [
"GameAnalytics",
"game analytics",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class GameAnalytics {

// Set the platform.
if (!data.platform) {
if (uaData.os.name === 'Windows' && uaData.device && uaData.device.type.match(/mobile|tablet/)) {
if (uaData.os.name === 'Windows' && uaData.device.type && uaData.device.type.match(/mobile|tablet/)) {
data.platform = 'windows_phone';
} else if (uaData.os.name === 'Windows') {
data.platform = 'windows';
Expand Down

0 comments on commit 5d862c9

Please sign in to comment.