mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
OpenID Connect RP support for customer accounts
This commit is contained in:
committed by
Raphael Michel
parent
e102a590ab
commit
7f5518dbf6
10
src/pretix/static/pretixpresale/js/postmessage.js
Normal file
10
src/pretix/static/pretixpresale/js/postmessage.js
Normal file
@@ -0,0 +1,10 @@
|
||||
/*global $ */
|
||||
|
||||
$(function () {
|
||||
window.addEventListener("message", (event) => {
|
||||
if (event.data && event.data.__process === "popup_close") {
|
||||
window.close()
|
||||
}
|
||||
});
|
||||
window.opener.postMessage(JSON.parse($("#postmessage").text()), $("#origin").text())
|
||||
})
|
||||
Reference in New Issue
Block a user