Skip to content

Commit

Permalink
change addEventListener to window.addEventlistener (#4792)
Browse files Browse the repository at this point in the history
  • Loading branch information
patmmccann authored Jan 29, 2020
1 parent e733204 commit f0845c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/secureCreatives.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { isRendererRequired, executeRenderer } from './Renderer';
const BID_WON = EVENTS.BID_WON;

export function listenMessagesFromCreative() {
addEventListener('message', receiveMessage, false);
window.addEventListener('message', receiveMessage, false);
}

function receiveMessage(ev) {
Expand Down

0 comments on commit f0845c8

Please sign in to comment.