Skip to content

Commit

Permalink
- Add new iPhone device names
Browse files Browse the repository at this point in the history
- Fix issue #77
  • Loading branch information
osoner committed Oct 18, 2013
1 parent a68856f commit 4285d4a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
2 changes: 0 additions & 2 deletions api/parts/data/usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ var usage = {},
var lastEndSession = dbAppUser[common.dbUserMap['last_end_session_timestamp']];

if (lastEndSession && (params.time.nowWithoutTimestamp.unix() - lastEndSession) < 15) {
liveApi.extendUserSession(params);

var userProps = {};
userProps[common.dbUserMap['has_ongoing_session']] = true;
userProps[common.dbUserMap['last_begin_session_timestamp']] = params.time.nowWithoutTimestamp.unix();
Expand Down
12 changes: 12 additions & 0 deletions frontend/express/public/javascripts/countly/countly.device.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,18 @@
case "iPhone5,2":
fullName = "iPhone 5 (Global)";
break;
case "iPhone5,3":
fullName = "iPhone 5C (GSM)";
break;
case "iPhone5,4":
fullName = "iPhone 5C (Global)";
break;
case "iPhone6,1":
fullName = "iPhone 5S (GSM)";
break;
case "iPhone6,2":
fullName = "iPhone 5S (Global)";
break;
case "iPod1,1":
fullName = "iPod Touch 1G";
break;
Expand Down
15 changes: 8 additions & 7 deletions frontend/express/public/javascripts/min/countly.lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4285d4a

Please sign in to comment.