New padding.
This commit is contained in:
parent
0e821f8b58
commit
931aae5134
@ -10,7 +10,10 @@ class HTMLFrame extends HTMLElement {
|
|||||||
this.container.classList.add("html_frame")
|
this.container.classList.add("html_frame")
|
||||||
const url = this.getAttribute('url');
|
const url = this.getAttribute('url');
|
||||||
if (url) {
|
if (url) {
|
||||||
const 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")
|
||||||
|
if(!fullUrl.startsWith("https")){
|
||||||
|
fullUrl = "https://" + fullUrl
|
||||||
|
}
|
||||||
if(!url.startsWith("/"))
|
if(!url.startsWith("/"))
|
||||||
fullUrl.searchParams.set('url', url)
|
fullUrl.searchParams.set('url', url)
|
||||||
this.loadAndRender(fullUrl.toString());
|
this.loadAndRender(fullUrl.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user