Fixed ui routing conflict with syncNotification
Change-Id: I94e0f91ee35ed90ad73798de5d635abc4addbd4b
diff --git a/views/ngXosViews/synchronizerNotifier/gulp/build.js b/views/ngXosViews/synchronizerNotifier/gulp/build.js
index 47cb69c..ee4bbe9 100644
--- a/views/ngXosViews/synchronizerNotifier/gulp/build.js
+++ b/views/ngXosViews/synchronizerNotifier/gulp/build.js
@@ -27,12 +27,7 @@
var mqpacker = require('css-mqpacker');
var csswring = require('csswring');
-const TEMPLATE_FOOTER = `
-angular.module('xos.synchronizerNotifier')
-.run(['$location', function(a){
- a.path('/');
-}])
-`
+const TEMPLATE_FOOTER = ``;
module.exports = function(options){
diff --git a/views/ngXosViews/synchronizerNotifier/src/js/main.js b/views/ngXosViews/synchronizerNotifier/src/js/main.js
index f65c4d1..499d474 100644
--- a/views/ngXosViews/synchronizerNotifier/src/js/main.js
+++ b/views/ngXosViews/synchronizerNotifier/src/js/main.js
@@ -5,11 +5,6 @@
'ngCookies',
'xos.helpers'
])
-.run(function($rootScope){
- $rootScope.$on('$locationChangeStart', function(event) {
- event.preventDefault();
- });
-})
.service('Diag', function($rootScope, $http, $q, $interval){
let isRunning = false;
@@ -74,7 +69,7 @@
else{
return true;
}
- }
+ };
$interval(() => {
if(isRunning){