Skip to content

Commit

Permalink
Merge pull request #142 from vezwork/fixiframeMonetization
Browse files Browse the repository at this point in the history
Fix the iframe uuid case where two akitas are installed
  • Loading branch information
sharon-wang authored Apr 17, 2021
2 parents 1f9b6f5 + a3052b9 commit 64faa4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/content_scripts/content_origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,16 @@ webBrowser.runtime.onMessage.addListener((message) => {
if (message.iframeReceivedUuid) {
const { iframeUuid } = message.iframeReceivedUuid;
const iframe = iframeUuidMap.get(iframeUuid);
iframesWithUuids.add(iframe);
if (iframe) {
iframesWithUuids.add(iframe);
}
}
if (message.iframePaymentPointerChange) {
const { iframeUuid, paymentPointer } = message.iframePaymentPointerChange;
const iframe = iframeUuidMap.get(iframeUuid);
paymentPointerIframeMap.set(iframe, paymentPointer);
if (iframe) {
paymentPointerIframeMap.set(iframe, paymentPointer);
}
}
});

Expand Down

0 comments on commit 64faa4a

Please sign in to comment.