Removing window reload code in favor of the right fix for what is a legacy issue

This commit is contained in:
Shaunak Kashyap 2016-06-10 13:26:23 -07:00
parent aa05237c9d
commit db780bd645
No known key found for this signature in database
GPG key ID: 0512E188DDE4FF2A

View file

@ -9,7 +9,7 @@ import uiModules from 'ui/modules';
const chrome = require('ui/chrome')
.setRootTemplate(require('plugins/status_page/status_page.html'))
.setRootController('ui', function ($http, $window, $scope) {
.setRootController('ui', function ($http, $scope) {
const ui = this;
ui.loading = false;
@ -36,11 +36,6 @@ const chrome = require('ui/chrome')
ui.serverState = overall.state;
ui.serverStateMessage = overall.title;
}
const statusPageUrl = chrome.addBasePath('/status');
if (overall.state === 'green' && $window.location.pathname !== statusPageUrl) {
return $window.location.reload();
}
})
.catch(function () {
if (ui.fetchError) return;