fix: correct variable reference in URL construction for HTMLFrame component

This commit is contained in:
2025-01-29 01:53:51 +00:00
parent a8a9815aec
commit f492911c85
+1 -1
View File
@@ -10,7 +10,7 @@ class HTMLFrame extends HTMLElement {
this.container.classList.add("html_frame")
let url = this.getAttribute('url');
if(!url.startsWith("https")){
url = "https://" + fullUrl
url = "https://" + url
}
if (url) {
let fullUrl = url.startsWith("/") ? window.location.origin + url : new URL(window.location.origin + "/http-get")