summaryrefslogtreecommitdiffstats
path: root/core/js/maintenance-check.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-16 16:40:02 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-16 16:45:00 +0200
commit0cfcccee29652c83e6c898bc487fe09bb54e0c22 (patch)
treeeb4aaf2473f1801017a0188ae1cd7d536d68966f /core/js/maintenance-check.js
parent633a1981428a1b94626ea6447c9ee305162c01dd (diff)
downloadnextcloud-server-0cfcccee29652c83e6c898bc487fe09bb54e0c22.tar.gz
nextcloud-server-0cfcccee29652c83e6c898bc487fe09bb54e0c22.zip
Migrate the maintenance script to a modern module and bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/maintenance-check.js')
-rw-r--r--core/js/maintenance-check.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/js/maintenance-check.js b/core/js/maintenance-check.js
deleted file mode 100644
index b9d34793a82..00000000000
--- a/core/js/maintenance-check.js
+++ /dev/null
@@ -1,17 +0,0 @@
-// Check every 20 seconds via status.php if maintenance is over
-window.setInterval(checkStatus, 20000);
-
-function checkStatus() {
- var request = new XMLHttpRequest();
- request.open("GET", OC.getRootPath()+'/status.php', true);
- request.onreadystatechange = function() {
- if (request.readyState === 4) {
- var response = request.responseText;
- var responseobj = JSON.parse(response);
- if (responseobj.maintenance === false) {
- window.location.reload();
- }
- }
- };
- request.send();
-}