Skip to content

Commit abfbad4

Browse files
committed
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
1 parent 64184e9 commit abfbad4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

client/components/pages/forms/show/EmbedCode.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default {
4242
},
4343
iframeCode() {
4444
const share_url = (this.extraQueryParam) ? this.form.share_url + "?" + this.extraQueryParam : this.form.share_url + this.extraQueryParam
45-
return '<iframe style="border:none;width:100%;" frameborder="0" width="100%" frameborder="0" id="' + this.iframeId + '" src="' + share_url + '"></iframe>'
45+
return '<iframe style="border:none;width:100%;" id="' + this.iframeId + '" src="' + share_url + '"></iframe>'
4646
},
4747
iframeId() {
4848
return 'form-' + this.form.slug

client/pages/forms/[slug]/index.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ useHead({
166166
}
167167
return titleChunk ? `${titleChunk} - OpnForm` : 'OpnForm';
168168
},
169-
... form.value.custom_code ? {
170-
script: [ { src: '/widgets/iframeResizer.contentWindow.min.js' } ]
171-
} : {}
169+
script: [ { src: '/widgets/iframeResizer.contentWindow.min.js' } ]
172170
})
173171
</script>

0 commit comments

Comments
 (0)