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:
parent
3374c14311
commit
403c0ef7e4
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue