Skip to content

Commit

Permalink
fix: Quick fix issues in 1.5.0. Re-adds missing css file and adds a n…
Browse files Browse the repository at this point in the history
…ull check around adDisplayContainer.initialize(). (#648)
  • Loading branch information
shawnbuso committed Jun 11, 2018
1 parent fb33c91 commit 0c763c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions configs/rollup.config.js
Expand Up @@ -17,6 +17,8 @@ export default {
json(),
copy({
'src/css/videojs.ima.css': 'dist/videojs.ima.css',
}),
copy({
'src/css/videojs.ima.css': 'dist/videojs.ima.scss',
}),
babel({
Expand Down
2 changes: 2 additions & 0 deletions configs/rollup.config.min.js
Expand Up @@ -23,6 +23,8 @@ export default {
uglify({}, minify),
copy({
'src/css/videojs.ima.css': 'dist/videojs.ima.css',
}),
copy({
'src/css/videojs.ima.css': 'dist/videojs.ima.scss',
}),
],
Expand Down
6 changes: 4 additions & 2 deletions src/sdk-impl.js
Expand Up @@ -697,8 +697,10 @@ SdkImpl.prototype.setVolume = function(volume) {
* result of user action.
*/
SdkImpl.prototype.initializeAdDisplayContainer = function() {
this.adDisplayContainerInitialized = true;
this.adDisplayContainer.initialize();
if (this.adDisplayContainer) {
this.adDisplayContainerInitialized = true;
this.adDisplayContainer.initialize();
}
};

/**
Expand Down

0 comments on commit 0c763c3

Please sign in to comment.