mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix(dropbox): Address code review comments.
This commit is contained in:
@@ -6,30 +6,22 @@
|
||||
<!--#include virtual="/base.html" -->
|
||||
<!--#include virtual="/title.html" -->
|
||||
<script>
|
||||
function getParentWindowCallback() {
|
||||
(function() {
|
||||
var windowName = window.name;
|
||||
var parentWindow = window.opener;
|
||||
if (parentWindow
|
||||
&& parentWindow.JitsiMeetJS
|
||||
&& parentWindow.JitsiMeetJS.app) {
|
||||
var globalNS = parentWindow.JitsiMeetJS.app;
|
||||
if( globalNS.oauthCallbacks
|
||||
if (globalNS.oauthCallbacks
|
||||
&& typeof globalNS.oauthCallbacks[windowName]
|
||||
=== 'function') {
|
||||
return globalNS.oauthCallbacks[windowName];
|
||||
globalNS.oauthCallbacks[windowName]();
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var callback = getParentWindowCallback();
|
||||
if (typeof callback === 'function') {
|
||||
callback();
|
||||
} else {
|
||||
alert('Something went wrong!');
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
<body />
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user