We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5442863 + 3d67719 commit 61696e1Copy full SHA for 61696e1
src/pages/demoapps/johnnyb-lab.vue
@@ -26,10 +26,11 @@ export default {
26
27
methods: {
28
resizeIframe() {
29
- const iframe = document.getElementById("appframe");
30
- if(iframe) {
31
- console.log('height', iframe.contentWindow.document.body.scrollHeight);
32
- iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
+ if (typeof document !== 'undefined') {
+ const iframe = document.getElementById("appframe");
+ if(iframe) {
+ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
33
+ }
34
}
35
36
},
0 commit comments