mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Use BroadcastChannel instead of window.opener for OAuth callback window (#9779)
This commit is contained in:
committed by
GitHub
parent
a1046607bf
commit
87cb199745
@@ -1,7 +1,8 @@
|
||||
<html>
|
||||
<script>
|
||||
(function messageParent() {
|
||||
window.opener.postMessage('success', '*');
|
||||
const broadcastChannel = new BroadcastChannel('oauth-callback');
|
||||
broadcastChannel.postMessage('success');
|
||||
})();
|
||||
</script>
|
||||
|
||||
|
||||
@@ -17,7 +17,10 @@
|
||||
{{/if}}
|
||||
Failed to connect. The window can be closed now.
|
||||
<script>
|
||||
(function messageParent() { window.opener?.postMessage('error', '*'); })();
|
||||
(function messageParent() {
|
||||
const broadcastChannel = new BroadcastChannel('oauth-callback');
|
||||
broadcastChannel.postMessage('error');
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user