Merge pull request #16242 from owncloud/use-oc-webroot

Use OC.webroot instead of calculating the URL
This commit is contained in:
Thomas Müller 2015-05-15 18:10:18 +02:00
commit 2cafbc803a

View file

@ -3,10 +3,7 @@ window.setInterval(checkStatus, 20000);
function checkStatus() {
var request = new XMLHttpRequest();
var ocroot = location.pathname.substr(
0, location.pathname.indexOf('index.php')
);
request.open("GET", ocroot+'status.php', true);
request.open("GET", OC.webroot+'/status.php', true);
request.onreadystatechange = function() {
if (request.readyState === 4) {
var response = request.responseText;