aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/maintenance/main-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/maintenance/main-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/maintenance/main-view.js18
1 files changed, 6 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/apps/maintenance/main-view.js b/server/sonar-web/src/main/js/apps/maintenance/main-view.js
index 064ac731f10..68b234721bf 100644
--- a/server/sonar-web/src/main/js/apps/maintenance/main-view.js
+++ b/server/sonar-web/src/main/js/apps/maintenance/main-view.js
@@ -34,12 +34,9 @@ export default Marionette.ItemView.extend({
type: 'GET',
url: window.baseUrl + '/api/system/' + (this.options.setup ? 'db_migration_status' : 'status')
};
- this.pollingInternal = setInterval(
- () => {
- this.refresh();
- },
- 5000
- );
+ this.pollingInternal = setInterval(() => {
+ this.refresh();
+ }, 5000);
this.wasStarting = false;
},
@@ -84,12 +81,9 @@ export default Marionette.ItemView.extend({
},
goHome() {
- setInterval(
- () => {
- window.location = window.baseUrl + '/';
- },
- 2500
- );
+ setInterval(() => {
+ window.location = window.baseUrl + '/';
+ }, 2500);
},
serializeData() {