Skip to content
Browse files

Log the hardware id so we can target optimizations based on the most …

…used device :)
  • Loading branch information...
1 parent 7296deb commit 1585dc0b56f674ba5f9ecfc74e760a41781709a5 @cpojer cpojer committed Nov 20, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 JavaScript/App.js
View
1 JavaScript/App.js
@@ -495,6 +495,7 @@ API.setLogHandler(function(data) {
data.os_version = (device && device.version) || Browser.version;
data.device = ((device && device.name) || '').toLowerCase();
data.version = Auphonic.Version;
+ if (data.platform == 'iphone' || data.platform == 'ipod touch') data.hardware = (window.screen.height == 568) ? 5 : 4;
return data;
});

0 comments on commit 1585dc0

Please sign in to comment.
Something went wrong with that request. Please try again.