2016-09-06 14:07:11 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title></title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2017-02-22 13:12:09 +00:00
|
|
|
<script>
|
|
|
|
try
|
|
|
|
{
|
|
|
|
if (window.opener != null && window.opener.onDropboxCallback != null)
|
|
|
|
{
|
|
|
|
var hash = window.location.hash;
|
|
|
|
var i1 = hash.indexOf('access_token=');
|
|
|
|
var token = null;
|
|
|
|
|
|
|
|
if (i1 >= 0)
|
|
|
|
{
|
|
|
|
var i2 = hash.indexOf('&', i1 + 13);
|
|
|
|
|
|
|
|
if (i2 > i1)
|
|
|
|
{
|
|
|
|
token = hash.substring(i1 + 13, i2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Continues execution of main program flow
|
|
|
|
window.opener.onDropboxCallback(token, window);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (e)
|
|
|
|
{
|
|
|
|
// ignore
|
|
|
|
}
|
2016-09-06 14:07:11 +00:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|