New padding.
This commit is contained in:
parent
5f3dac8bc6
commit
4442f75ec5
@ -8,12 +8,13 @@ class HTMLFrame extends HTMLElement {
|
|||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
this.container.classList.add("html_frame")
|
this.container.classList.add("html_frame")
|
||||||
const url = this.getAttribute('url');
|
let url = this.getAttribute('url');
|
||||||
|
if(!url.startsWith("https")){
|
||||||
|
url = "https://" + fullUrl
|
||||||
|
}
|
||||||
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")
|
||||||
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