Skip to content

Commit

Permalink
Removing window reload code in favor of the right fix for what is a l…
Browse files Browse the repository at this point in the history
…egacy issue
  • Loading branch information
ycombinator committed Jun 10, 2016
1 parent aa05237 commit db780bd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/plugins/status_page/public/status_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit db780bd

Please sign in to comment.