fix-share-link-protocol

This commit is contained in:
Eason010212
2024-09-30 10:03:26 +08:00
parent ab6b18b6b9
commit 3810d24315

View File

@@ -490,8 +490,8 @@ function check_share_key() {
$("#shareKey").addClass('btn-success')
$("#shareKey").html("ON")
sharekey.html(globalShareKey)
sharelink.html("http://"+window.location.host + "/observe?sid=" + globalShareKey)
sharelink.attr("href", "http://"+window.location.host + "/observe?sid=" + globalShareKey)
sharelink.html(window.location.href.split("/")[0]+"//"+window.location.host + "/observe?sid=" + globalShareKey)
sharelink.attr("href", window.location.href.split("/")[0]+"//"+window.location.host + "/observe?sid=" + globalShareKey)
sharelink.css("color","#1cc88a")
}
}