Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit b962731

Browse files
authored
Merge pull request #1210 from appirio-tech/listings-release-6-12-2017
Listings release 6 12 2017
2 parents 4344a02 + 17c3cdd commit b962731

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

app/profile/about/about.controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ import angular from 'angular'
4141

4242
profileVm.statsPromise.then(function() {
4343
vm.categories = profileVm.categories
44-
vm.marathonRating = profileVm.categories['MARATHON_MATCH'] && profileVm.categories['MARATHON_MATCH'].rating
45-
vm.SRMRating = profileVm.categories['SRM'] && profileVm.categories['SRM'].rating
44+
vm.marathonRating = profileVm.categories && profileVm.categories['MARATHON_MATCH'] && profileVm.categories['MARATHON_MATCH'].rating
45+
vm.SRMRating = profileVm.categories && profileVm.categories['SRM'] && profileVm.categories['SRM'].rating
4646
vm.displaySection.stats = profileVm.showEditProfileLink
4747
})
4848

assets/scripts/google.analytics.jade

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
script(type="text/javascript").
2-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5-
})(window,document,'script','//www.google-analytics.com/analytics.js','__gaTracker');
6-
__gaTracker('create', 'UA-6340959-1', 'auto');
7-
__gaTracker('set', 'forceSSL', true);
8-
__gaTracker('require', 'displayfeatures');
9-
__gaTracker('send','pageview');
2+
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0";
3+
analytics.load("WEjBoGYCPGzGrNDmf7V4eQsMOsJroeyr");
4+
analytics.page();
5+
}}();

0 commit comments

Comments
 (0)