From e9e5028b62601e8b95abd09ff0cbcee82d67ec82 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Thu, 30 Mar 2017 10:56:39 -0600 Subject: [PATCH] Change the load type for the phet-android-app query parameter, see https://github.com/phetsims/phet-android-app/issues/16 Conflicts: js/analytics/google-analytics.js --- js/analytics/google-analytics.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/analytics/google-analytics.js b/js/analytics/google-analytics.js index d4d468e4..dfe493c7 100644 --- a/js/analytics/google-analytics.js +++ b/js/analytics/google-analytics.js @@ -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';