mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Correct API path in JS client
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user