fix(dropbox): Address code review comments.

This commit is contained in:
hristoterezov
2018-08-15 14:51:51 -05:00
committed by yanas
parent 62544188bd
commit 2704b2f822
13 changed files with 138 additions and 144 deletions

View File

@@ -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>