forked from Esri/crowdsource-polling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoauth-callback-twitter.html
34 lines (34 loc) · 982 Bytes
/
oauth-callback-twitter.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>OAuth Popup Callback</title>
<style type="text/css">
html,
body {
height: 100%;
width: 100%;
margin: 0px;
padding: 0px;
font-family: Lucida Sans, Lucida Grande, Arial !important;
font-size: 14px;
}
</style>
<script type="text/javascript" src="https://js.arcgis.com/3.27"></script>
<script type="text/javascript">
require([
"esri/urlUtils",
"dojo/domReady!"
], function (urlUtils) {
var url = document.location.href;
var urlObject = urlUtils.urlToObject(url);
urlObject.query = urlObject.query || {};
window.opener.twitterCallback(urlObject.query);
window.close();
});
</script>
</head>
<body>
<!--OAuth Popup Callback-->
</body>
</html>