oops
This commit is contained in:
parent
e0de8bde94
commit
39f2b22d69
1 changed files with 2 additions and 1 deletions
|
|
@ -309,8 +309,9 @@ const t = i18n.useTranslations(lang);
|
|||
searxngUrlInput.value = localStorage.getItem("alu__searxngUrl");
|
||||
}
|
||||
const useWss = location.protocol == "https:";
|
||||
const webSocketProtocol = useWss ? "wss://" : "ws://";
|
||||
let savedWispUrl = localStorage.getItem("alu__wispUrl");
|
||||
if (savedWispUrl == null) localStorage.setItem("alu__wispUrl", useWss ? "wss://" : "ws://" + location.host + "/wisp/");
|
||||
if (savedWispUrl == null) localStorage.setItem("alu__wispUrl", webSocketProtocol + location.host + "/wisp/");
|
||||
let savedBareUrl = localStorage.getItem("alu__bareUrl");
|
||||
if (savedBareUrl == null) localStorage.setItem("alu__bareUrl", location.origin + "/bare/")
|
||||
wispURLInput.value = localStorage.getItem("alu__wispUrl");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue