Skip to content

Commit

Permalink
Change the load type for the phet-android-app query parameter, see ph…
Browse files Browse the repository at this point in the history
…etsims/phet-android-app#16

Conflicts:
	js/analytics/google-analytics.js
  • Loading branch information
jonathanolson committed Apr 13, 2017
1 parent e77d235 commit e9e5028
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/analytics/google-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@
}

var loadType;
// This is the iOS app
if ( phet.chipper.getQueryParameter( 'phet-app' ) ) {
loadType = 'phet-app';
}
// For the Android app, see https://github.com/phetsims/phet-android-app/issues/16
else if ( phet.chipper.getQueryParameter( 'phet-android-app' ) ) {
loadType = 'phet-android-app';
}
else if ( top !== self ) {
// Checks to see if this sim is embedded - phetsims/chipper#50
loadType = 'embedded';
Expand Down

0 comments on commit e9e5028

Please sign in to comment.