Remove useless iframe attributes

Fix resize for all forms

crisp migration (#302)

Co-authored-by: Julien Nahum <julien@nahum.net>

fix console error (#304)

fix: dark mode issues on form preview (#301)

* fix: dark mode issues on form preview

* Fix darkmode issues

---------

Co-authored-by: Julien Nahum <julien@nahum.net>

Remove useless iframe attributes
This commit is contained in:
Julien Nahum 2024-02-01 18:40:12 +01:00
parent 64184e9aaf
commit abfbad465c
2 changed files with 2 additions and 4 deletions

View File

@ -42,7 +42,7 @@ export default {
},
iframeCode() {
const share_url = (this.extraQueryParam) ? this.form.share_url + "?" + this.extraQueryParam : this.form.share_url + this.extraQueryParam
return '<iframe style="border:none;width:100%;" frameborder="0" width="100%" frameborder="0" id="' + this.iframeId + '" src="' + share_url + '"></iframe>'
return '<iframe style="border:none;width:100%;" id="' + this.iframeId + '" src="' + share_url + '"></iframe>'
},
iframeId() {
return 'form-' + this.form.slug

View File

@ -166,8 +166,6 @@ useHead({
}
return titleChunk ? `${titleChunk} - OpnForm` : 'OpnForm';
},
... form.value.custom_code ? {
script: [ { src: '/widgets/iframeResizer.contentWindow.min.js' } ]
} : {}
script: [ { src: '/widgets/iframeResizer.contentWindow.min.js' } ]
})
</script>