Skip to content

Commit

Permalink
Merge pull request #15 from miketaylr/null-model
Browse files Browse the repository at this point in the history
Fix "null" device model for Firefox OS Tablet UA
  • Loading branch information
barisaydinoglu committed Jan 7, 2014
2 parents c7a37ec + 90e245f commit f88d479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detectizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
} else if ((that.test(/tablet/i) && !that.test(/RX-34/i)) || that.test(/FOLIO/i)) {
// Check if user agent is a Tablet
device.type = deviceTypes[1];
device.model = String(that.exec(/playbook/));
device.model = String(that.exec(/playbook/) || "");
} else if (that.test(/Linux/i) && that.test(/Android/i) && !that.test(/Fennec|mobi|HTC.Magic|HTCX06HT|Nexus.One|SC-02B|fone.945/i)) {
// Check if user agent is an Android Tablet
device.type = deviceTypes[1];
Expand Down

0 comments on commit f88d479

Please sign in to comment.