Showing
1 changed file
with
4 additions
and
2 deletions
@@ -43,8 +43,10 @@ export default { | @@ -43,8 +43,10 @@ export default { | ||
43 | }; | 43 | }; |
44 | 44 | ||
45 | const setInterface = () => { | 45 | const setInterface = () => { |
46 | - window.frames['iframe'].yohoInterface = window.yohoInterface; | ||
47 | - window.frames['iframe'].appBaseLogs = window.appBaseLogs; | 46 | + if (window.frames['iframe']) { |
47 | + window.frames['iframe'].yohoInterface = window.yohoInterface; | ||
48 | + window.frames['iframe'].appBaseLogs = window.appBaseLogs; | ||
49 | + } | ||
48 | }; | 50 | }; |
49 | 51 | ||
50 | this.$bus.$on('after-view-enter', () => { | 52 | this.$bus.$on('after-view-enter', () => { |
-
Please register or login to post a comment