mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
fix(dropbox): OAuth to use postMessage.
This commit is contained in:
committed by
Дамян Минков
parent
591eab7c97
commit
827e8201d4
@@ -8,17 +8,11 @@
|
||||
<script>
|
||||
(function() {
|
||||
var windowName = window.name;
|
||||
var parentWindow = window.opener;
|
||||
if (parentWindow
|
||||
&& parentWindow.JitsiMeetJS
|
||||
&& parentWindow.JitsiMeetJS.app) {
|
||||
var globalNS = parentWindow.JitsiMeetJS.app;
|
||||
if (globalNS.oauthCallbacks
|
||||
&& typeof globalNS.oauthCallbacks[windowName]
|
||||
=== 'function') {
|
||||
globalNS.oauthCallbacks[windowName](window.location.href);
|
||||
}
|
||||
}
|
||||
window.opener && window.opener.postMessage({
|
||||
type: 'dropbox-login',
|
||||
windowName,
|
||||
url: window.location.href
|
||||
}, window.location.origin);
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user