Skip to content

Commit

Permalink
Fixes #461
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed May 22, 2017
1 parent edcaf7a commit b8611ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/user/vue-components/ApplicationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@
return utils.maxIframeSize();
},
focusIframe: function() {
let iframe = this.$el.querySelector('iframe');
if(iframe !== null) {
iframe.focus();
if(this.$el.querySelector !== undefined && // In case $el is not rendered
this.$el.querySelector('iframe') !== null) {
this.$el.querySelector('iframe').focus();
}
}
},
Expand Down

0 comments on commit b8611ba

Please sign in to comment.