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 87b2928 + bfe9e29 commit a6b60b9Copy full SHA for a6b60b9
src/pages/demoapps/johnnyb-lab.vue
@@ -39,17 +39,21 @@ export default {
39
methods: {
40
resizeIframe() {
41
if (typeof document !== 'undefined') {
42
- const iframe = document.getElementById("appframe");
43
- if(iframe) {
44
- iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
+ try{
+ const iframe = document.getElementById("appframe");
+ if(iframe) {
45
+ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
46
+ }
47
+ } catch(e) {
48
+ console.log(e);
49
}
50
51
52
},
53
- mounted() {
- window.addEventListener('resize', this.resizeIframe);
- },
54
+ // mounted() {
55
+ // window.addEventListener('resize', this.resizeIframe);
56
+ // },
57
58
59
0 commit comments