mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-26 20:13:07 +02:00
Correct API path in JS client
This commit is contained in:
@@ -33,6 +33,10 @@ $(document).ready(function () {
|
|||||||
return opts.inverse(this);
|
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();
|
bindUIButtons();
|
||||||
loadJackettSettings();
|
loadJackettSettings();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user