| 1 |
const { SUCCESS_PAGE_MESSAGE } = require( './constants.js' ); |
| 2 |
|
| 3 |
if ( window.opener ) { |
| 4 |
window.opener.postMessage( SUCCESS_PAGE_MESSAGE, window.origin ); |
| 5 |
} |
| 6 |
|
| 7 |
if ( window.parent ) { |
| 8 |
window.parent.postMessage( SUCCESS_PAGE_MESSAGE, window.origin ); |
| 9 |
} |