Automatically fix problems with API URL
This commit is contained in:
parent
78c0de345b
commit
20271883db
@ -5,6 +5,12 @@
|
||||
*/
|
||||
|
||||
function dlGroups() {
|
||||
if (!$("#url").val().startsWith("http")) {
|
||||
$("#url").val("https://" + $("#url").val());
|
||||
}
|
||||
if (!$("#url").val().endsWith("/api.php")) {
|
||||
$("#url").val($("#url").val() + "/api.php");
|
||||
}
|
||||
localStorage.setItem("apiurl", $("#url").val());
|
||||
localStorage.setItem("apikey", $("#key").val());
|
||||
reloadSettings();
|
||||
|
Loading…
x
Reference in New Issue
Block a user