Skip to content

Commit

Permalink
Update createManager.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hewholived authored Apr 20, 2017
1 parent 4f58dd5 commit 078a402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export class AdManager extends EventEmitter {
reject(new Error("window.googletag is not available"));
}
};
if (window.googletag) {
if (window.googletag && googletag.apiReady) {
onLoad();
} else {
const script = document.createElement("script");
Expand Down

0 comments on commit 078a402

Please sign in to comment.