Skip to content

Commit

Permalink
hide container on allAdsCompleted
Browse files Browse the repository at this point in the history
  • Loading branch information
nechehin committed May 15, 2020
1 parent 5e2e7bb commit f12b891
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vast-contentroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))};d.p
/*!
* VAST content-roll
*
* @version 0.0.12
* @version 0.0.13
* @link https://github.com/nechehin/vast-contentroll
*/
(function(){
Expand Down Expand Up @@ -256,7 +256,7 @@ this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))};d.p
*/
function onAdsEmpty(roll) {
intersectionObserver.unobserve(roll);
roll.style.height = '0';
roll.style.display = 'none';

var onEmptyCallback = data(roll, 'on-empty');
if (typeof window[onEmptyCallback] === 'function') {
Expand Down
4 changes: 2 additions & 2 deletions vast-contentroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f12b891

Please sign in to comment.