mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
7c6f9dabf1
1 changed files with 2 additions and 0 deletions
|
|
@ -318,6 +318,7 @@ const bindProviderEvent = () => {
|
||||||
(providerPanelElement.querySelector("#timeout") as HTMLInputElement).value = timeout.toString();
|
(providerPanelElement.querySelector("#timeout") as HTMLInputElement).value = timeout.toString();
|
||||||
let endpoint = (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value;
|
let endpoint = (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value;
|
||||||
endpoint = endpoint.trim().replace("http://http(s)://", "https://");
|
endpoint = endpoint.trim().replace("http://http(s)://", "https://");
|
||||||
|
endpoint = endpoint.replace("http(s)://", "https://");
|
||||||
if (!endpoint.startsWith("http")) {
|
if (!endpoint.startsWith("http")) {
|
||||||
endpoint = "http://" + endpoint;
|
endpoint = "http://" + endpoint;
|
||||||
}
|
}
|
||||||
|
|
@ -353,6 +354,7 @@ const bindProviderEvent = () => {
|
||||||
(providerPanelElement.querySelector("#timeout") as HTMLInputElement).value = timeout.toString();
|
(providerPanelElement.querySelector("#timeout") as HTMLInputElement).value = timeout.toString();
|
||||||
let endpoint = (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value;
|
let endpoint = (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value;
|
||||||
endpoint = endpoint.trim().replace("http://http(s)://", "https://");
|
endpoint = endpoint.trim().replace("http://http(s)://", "https://");
|
||||||
|
endpoint = endpoint.replace("http(s)://", "https://");
|
||||||
if (!endpoint.startsWith("http")) {
|
if (!endpoint.startsWith("http")) {
|
||||||
endpoint = "http://" + endpoint;
|
endpoint = "http://" + endpoint;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue