@clappr/plugins
Advanced tools
Comparing version 0.4.11 to 0.4.12
{ | ||
"name": "@clappr/plugins", | ||
"version": "0.4.11", | ||
"version": "0.4.12", | ||
"description": "Main plugins for the Clappr project", | ||
@@ -37,19 +37,19 @@ "main": "./dist/clappr-plugins.js", | ||
"peerDependencies": { | ||
"@clappr/core": "^0.4.17" | ||
"@clappr/core": "^0.4.18" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
"@clappr/core": "^0.4.17", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.1", | ||
"@rollup/plugin-replace": "^2.3.4", | ||
"autoprefixer": "9.8.6", | ||
"@babel/core": "^7.14.2", | ||
"@babel/preset-env": "^7.14.2", | ||
"@clappr/core": "^0.4.18", | ||
"@rollup/plugin-commonjs": "^19.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@rollup/plugin-replace": "^2.4.2", | ||
"autoprefixer": "^9.8.6", | ||
"babel-plugin-istanbul": "^6.0.0", | ||
"chai": "^4.2.0", | ||
"chai": "^4.3.4", | ||
"coveralls": "^3.1.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^7.17.0", | ||
"eslint": "^7.26.0", | ||
"istanbul": "^0.4.5", | ||
"karma": "^6.0.0", | ||
"karma": "^6.3.2", | ||
"karma-chai-sinon": "^0.1.5", | ||
@@ -61,10 +61,10 @@ "karma-chrome-launcher": "^3.1.0", | ||
"karma-mocha": "^2.0.1", | ||
"karma-rollup-preprocessor": "^7.0.5", | ||
"mocha": "^8.2.1", | ||
"karma-rollup-preprocessor": "^7.0.7", | ||
"mocha": "^8.4.0", | ||
"node-sass": "^5.0.0", | ||
"postcss": "^8.2.4", | ||
"postcss-url": "^10.1.1", | ||
"rollup": "^2.36.1", | ||
"postcss": "^8.2.15", | ||
"postcss-url": "^10.1.3", | ||
"rollup": "^2.47.0", | ||
"rollup-plugin-analyzer": "^4.0.0", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-html": "^0.2.1", | ||
@@ -77,4 +77,4 @@ "rollup-plugin-livereload": "^2.0.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"sinon": "^9.2.3", | ||
"sinon-chai": "^3.5.0" | ||
"sinon": "^10.0.0", | ||
"sinon-chai": "^3.6.0" | ||
}, | ||
@@ -81,0 +81,0 @@ "config": { |
@@ -149,3 +149,7 @@ //Copyright 2014 Globo.com Player authors. All rights reserved. | ||
this.$el.css({ 'background-image': 'url(' + posterUrl + ')' }) | ||
} else if (this.options.poster) { this.$el.css({ 'background': this.options.poster.custom }) } | ||
this.removeVideoElementPoster() | ||
} else if (this.options.poster) { | ||
this.$el.css({ 'background': this.options.poster.custom }) | ||
this.removeVideoElementPoster() | ||
} | ||
@@ -170,2 +174,10 @@ this.container.$el.append(this.el) | ||
} | ||
removeVideoElementPoster() { | ||
this.container.playback && | ||
this.container.playback.$el && | ||
this.container.playback.$el[0] && | ||
this.container.playback.$el[0].removeAttribute && | ||
this.container.playback.$el[0].removeAttribute('poster') | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
529166
8423