New padding.

This commit is contained in:
retoor 2025-01-29 02:53:51 +01:00
parent 4442f75ec5
commit 030942db09

View File

@ -10,7 +10,7 @@ class HTMLFrame extends HTMLElement {
this.container.classList.add("html_frame") this.container.classList.add("html_frame")
let url = this.getAttribute('url'); let url = this.getAttribute('url');
if(!url.startsWith("https")){ if(!url.startsWith("https")){
url = "https://" + fullUrl url = "https://" + url
} }
if (url) { if (url) {
let fullUrl = url.startsWith("/") ? window.location.origin + url : new URL(window.location.origin + "/http-get") let fullUrl = url.startsWith("/") ? window.location.origin + url : new URL(window.location.origin + "/http-get")