Skip to content

Commit

Permalink
πŸ› Fixing window reference for amp-ad type kargo (#30174)
Browse files Browse the repository at this point in the history
* correcting window reference for amp-ad kargo

* changing window reference to global

(cherry picked from commit 95e9db0)
  • Loading branch information
andyrusiecki authored and ampprojectbot committed Sep 16, 2020
1 parent cac99b2 commit 7b997c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ads/kargo.js
Expand Up @@ -45,9 +45,9 @@ export function kargo(global, data) {
'kargo-load',
function (done) {
// load AdTag in Master window
loadScript(this, kargoScriptUrl, () => {
loadScript(global, kargoScriptUrl, () => {
let success = false;
if (this.Kargo != null && this.Kargo.loaded) {
if (global.Kargo != null && global.Kargo.loaded) {
success = true;
}

Expand Down

0 comments on commit 7b997c2

Please sign in to comment.