Skip to content

Commit

Permalink
Fix yield pro use of implicit this (#30235)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq committed Sep 15, 2020
1 parent e7a2b26 commit 8f317f5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ads/yieldpro.js
Expand Up @@ -49,13 +49,12 @@ export function yieldpro(global, data) {
'yieldpro-request',
(done) => {
let success = false;
const masterWin = this;
if (!masterWin.showadAMPAdapter) {
masterWin.showadAMPAdapter = {
if (!global.showadAMPAdapter) {
global.showadAMPAdapter = {
registerSlot: () => {},
};
loadScript(this, scriptUrl, () => {
if (masterWin.showadAMPAdapter.inited) {
loadScript(global, scriptUrl, () => {
if (global.showadAMPAdapter.inited) {
success = true;
}
done(success);
Expand Down

0 comments on commit 8f317f5

Please sign in to comment.