diff --git a/src/generate.ts b/src/generate.ts index a6a3045..7423c5a 100644 --- a/src/generate.ts +++ b/src/generate.ts @@ -64,7 +64,7 @@ export function createProjectForm({ const form = document.createElement('form'); form.method = 'POST'; - form.setAttribute('style', 'display:none!important;'); + form.style.setProperty('display', 'none', 'important'); form.append(...inputs); return form; } diff --git a/src/helpers.ts b/src/helpers.ts index 7114ca6..55e80fb 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -79,7 +79,7 @@ function setFrameDimensions(frame: HTMLIFrameElement, options: EmbedOptions = {} if (width) { frame.setAttribute('width', width); } else { - frame.setAttribute('style', 'width:100%;'); + frame.style.setProperty('width', '100%'); } }