Merge pull request #16242 from owncloud/use-oc-webroot
Use OC.webroot instead of calculating the URL
This commit is contained in:
commit
2cafbc803a
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue