Skip to content

Commit 078a402

Browse files
authored
Update createManager.js
1 parent 4f58dd5 commit 078a402

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)