mirror of
https://github.com/pretix/pretix.git
synced 2026-09-12 16:04:42 +00:00
* ESlint: Ignore vendored and pre-vue code * Format pre-vue code with eslint where possible --------- Co-authored-by: Kara Engelhardt <engelhardt@pretix.eu>
9 lines
242 B
JavaScript
9 lines
242 B
JavaScript
$(function () {
|
|
window.addEventListener('message', (event) => {
|
|
if (event.data && event.data.__process === 'popup_close') {
|
|
window.close()
|
|
}
|
|
})
|
|
window.opener.postMessage(JSON.parse($('#postmessage').text()), $('#origin').text())
|
|
})
|