Skip to content

Commit

Permalink
Merge pull request #26 from hewholived/master
Browse files Browse the repository at this point in the history
Fixing the check for gptReady
  • Loading branch information
potench authored Apr 20, 2017
2 parents 4f58dd5 + 078a402 commit d66be53
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 d66be53

Please sign in to comment.