Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Jul 18, 2023
1 parent 30999fc commit d01672f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/redirects/google-ima3.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function GoogleIma3(source) {
const VERSION = '3.453.0';

const ima = {};

const AdDisplayContainer = function () { };
AdDisplayContainer.prototype.destroy = noopFunc;
AdDisplayContainer.prototype.initialize = noopFunc;
Expand Down Expand Up @@ -478,11 +479,12 @@ export function GoogleIma3(source) {
window.google = {};
}

// Workaround for https://github.com/AdguardTeam/Scriptlets/issues/331
// To avoid conflicts with the DAI SDK, we need to make sure that the
// google.ima.dai namespace is not overwritten.
// https://github.com/AdguardTeam/Scriptlets/issues/331
// TODO: Later we should create a mock for the DAI SDK as well.
// See https://github.com/AdguardTeam/Scriptlets/issues/239
if (window.google.ima?.dai) {
// TODO: Later we should create a mock for the DAI SDK as well.
ima.dai = window.google.ima.dai;
}

Expand Down

0 comments on commit d01672f

Please sign in to comment.