fix-sharekey-https

This commit is contained in:
Eason010212
2025-12-13 16:03:36 +08:00
parent bd2f5ae564
commit 44ec6419b4

View File

@@ -534,7 +534,7 @@ function shareKey() {
$("#shareKey").html("ON")
sharekey.html(res)
globalShareKey = res
sharelink.html("http://"+window.location.host + "/observe?sid=" + globalShareKey)
sharelink.html(window.location.href.split("/")[0] + "//"+window.location.host + "/observe?sid=" + globalShareKey)
sharelink.attr("href", "http://"+window.location.host + "/observe?sid=" + globalShareKey)
sharelink.css("color","#1cc88a")
} else