mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -05:00
Ignore some transition errors.
This commit is contained in:
parent
19e556d1a9
commit
a109fa1e68
@ -66,6 +66,14 @@ angular.module('omega').config ($stateProvider, $urlRouterProvider,
|
|||||||
controller: 'AboutCtrl'
|
controller: 'AboutCtrl'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
angular.module('omega').factory '$exceptionHandler', ($log) ->
|
||||||
|
return (exception, cause) ->
|
||||||
|
return if exception.message == 'transition aborted'
|
||||||
|
return if exception.message == 'transition superseded'
|
||||||
|
return if exception.message == 'transition prevented'
|
||||||
|
return if exception.message == 'transition failed'
|
||||||
|
$log.error(exception, cause)
|
||||||
|
|
||||||
angular.module('omega').factory 'omegaDebug', ($window, $rootScope,
|
angular.module('omega').factory 'omegaDebug', ($window, $rootScope,
|
||||||
$injector) ->
|
$injector) ->
|
||||||
omegaDebug = $window.OmegaDebug ? {}
|
omegaDebug = $window.OmegaDebug ? {}
|
||||||
|
Loading…
Reference in New Issue
Block a user