Polishing modal fields and privacy settings

This commit is contained in:
James Barnsley
2018-06-06 21:11:27 +12:00
parent 12054ffcb4
commit 248e476f15
16 changed files with 21418 additions and 23218 deletions

View File

@ -1,6 +1,7 @@
import ReactGA from 'react-ga'
import Mopidy from 'mopidy'
import md5 from 'md5';
import { hashHistory } from 'react-router'
import * as helpers from '../../helpers'
@ -221,7 +222,8 @@ const MopidyMiddleware = (function(){
case 'MOPIDY_CONNECTED':
if (store.getState().ui.allow_reporting){
ReactGA.event({ category: 'Mopidy', action: 'Connected', label: window.location.hostname });
var hashed_hostname = md5(window.location.hostname);
ReactGA.event({ category: 'Mopidy', action: 'Connected', label: hashed_hostname });
}
next(action);
break;