Skip to content

Commit

Permalink
Merge pull request #88 from theonion/mobile_in_post-tracking-updates
Browse files Browse the repository at this point in the history
check for activeSizes in `refreshSlot`
  • Loading branch information
bcomerford authored Oct 26, 2018
2 parents b6db171 + 63d9337 commit ff16913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bulbs-public-ads-manager",
"version": "9.11.0",
"version": "9.11.1",
"description": "Ads manager for public side.",
"private": false,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ AdManager.prototype.refreshSlot = function (domElement) {

var slot = this.slots[domElement.id];

if (slot) {
if (slot && slot.activeSizes && slot.activeSizes.length) {
domElement.setAttribute('data-ad-load-state', 'loading');
this.refreshSlots([slot]);

Expand Down

0 comments on commit ff16913

Please sign in to comment.