1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-02 13:16:16 +00:00

Correct API path in JS client

This commit is contained in:
chibidev 2017-08-12 20:12:30 +02:00
parent 3374c14311
commit 403c0ef7e4

View file

@ -33,6 +33,10 @@ $(document).ready(function () {
return opts.inverse(this);
});
var index = window.location.pathname.indexOf("/UI");
var pathPrefix = window.location.pathname.substr(0, index);
api.root = pathPrefix + api.root;
bindUIButtons();
loadJackettSettings();
});