File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ window.Sync =
58
58
language : navigator .language
59
59
platform : navigator .platform
60
60
version : localStorage .version
61
- $ .get (" http://api.getspringseed.com/client" , anal)
61
+ # $.get("http://api.getspringseed.com/client", anal)
62
62
63
63
auth : (callback ) ->
64
64
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ class App extends Spine.Controller
52
52
' event' : ' Open App' ,
53
53
' properties' : {
54
54
' os' : @ getOS (),
55
+ ' country' : @ getCountry (),
56
+ ' language' : navigator .language ,
55
57
' version' : localStorage .version
56
58
}
57
59
})
@@ -130,4 +132,8 @@ class App extends Spine.Controller
130
132
return " Windows 8" if ua .indexOf (" Windows NT 6.2" ) > - 1
131
133
return " Windows 8.1" if ua .indexOf (" Windows NT 6.3" ) > - 1
132
134
135
+ getCountry : ->
136
+ $ .getJSON ' http://freegeoip.net/json/' , (loc ) ->
137
+ return loc .country_name
138
+
133
139
module .exports = App
You can’t perform that action at this time.
0 commit comments