File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-video-player" ,
3
- "version" : " 3.1.1 " ,
3
+ "version" : " 3.1.2 " ,
4
4
"description" : " Video Player component for Vue2" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 100
100
// console.log(videoOptions)
101
101
102
102
// avoid error "VIDEOJS: ERROR: Unable to find plugin: __ob__"
103
- delete videoOptions .plugins .__ob__
103
+ if (videoOptions .plugins ) {
104
+ delete videoOptions .plugins .__ob__
105
+ }
104
106
this .player = videojs (this .$el .children [0 ], videoOptions, function () {
105
107
106
108
// player readied
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ var videoPlayer = {
60
60
}
61
61
}
62
62
63
- delete options . plugins . __ob__
63
+ if ( options . plugins ) {
64
+ delete options . plugins . __ob__
65
+ }
64
66
// console.log(options)
65
67
66
68
var eventEmit = function ( vnode , name , data ) {
You can’t perform that action at this time.
0 commit comments