Skip to content

Commit cade4c9

Browse files
authored
Merge pull request #5 from lastch/master
Checking video existance #4
2 parents 7cdcb74 + 587d0e7 commit cade4c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/VideoPlayer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default {
5050
},
5151
methods: {
5252
pause() {
53-
this.$refs.video.pause();
53+
this.$refs.video && this.$refs.video.pause();
5454
},
5555
load() {
5656
this.hide();

0 commit comments

Comments
 (0)