Skip to content

Commit d66be53

Browse files
authored
Merge pull request #26 from hewholived/master
Fixing the check for gptReady
2 parents 4f58dd5 + 078a402 commit d66be53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export class AdManager extends EventEmitter {
443443
reject(new Error("window.googletag is not available"));
444444
}
445445
};
446-
if (window.googletag) {
446+
if (window.googletag && googletag.apiReady) {
447447
onLoad();
448448
} else {
449449
const script = document.createElement("script");

0 commit comments

Comments
 (0)