mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 13:07:59 +01:00
Merged development into master
This commit is contained in:
commit
9429a0b1d1
1 changed files with 10 additions and 2 deletions
|
@ -9,8 +9,16 @@ module.run [
|
||||||
]
|
]
|
||||||
|
|
||||||
module.config [
|
module.config [
|
||||||
'$locationProvider', '$stateProvider', '$dialogProvider', 'AngularyticsProvider'
|
'$locationProvider', '$stateProvider', '$dialogProvider', 'AngularyticsProvider', '$httpProvider'
|
||||||
(location, state, $dialogProvider, analytics) ->
|
(location, state, $dialogProvider, analytics, $httpProvider) ->
|
||||||
|
|
||||||
|
$httpProvider.interceptors.push [
|
||||||
|
->
|
||||||
|
request: (config) ->
|
||||||
|
return config if !(/^\/?templates\//.test config.url)
|
||||||
|
config.url += '?' + Math.ceil(Math.random() * 1000000)
|
||||||
|
return config
|
||||||
|
]
|
||||||
|
|
||||||
analytics.setEventHandlers ['Google']
|
analytics.setEventHandlers ['Google']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue