Skip to content

Commit

Permalink
Fix: Safari's blackout problem on panorama view #3
Browse files Browse the repository at this point in the history
  • Loading branch information
naokazuterada committed Dec 25, 2017
1 parent 2d93763 commit 56aef62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/dna-of-forests/components/page/guide/panorama.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,13 @@ export default Vue.extend({
watch: {
'$route': 'resetAutoScroll'
},
beforeDestroy: function() {
// Fix for video loading error when reload panorama view
if(document.querySelector('body.safari')){
var video = document.getElementById(`video_${this.$route.params.forest}`);
document.body.removeChild(video);
}
},
mounted: function() {
this.resetAutoScroll();
Expand Down

0 comments on commit 56aef62

Please sign in to comment.