forked from cezarsa/silver_bird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoauth_callback.html
More file actions
29 lines (25 loc) · 794 Bytes
/
Copy pathoauth_callback.html
File metadata and controls
29 lines (25 loc) · 794 Bytes
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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="lib/3rdparty/jquery.js"></script>
<script type="text/javascript" src="lib/3rdparty/oauth.js"></script>
<script type="text/javascript" src="lib/shortener_lib.js"></script>
<script type="text/javascript" src="lib/3rdparty/sha1.js"></script>
<title>Silver Bird - OAuth Callback</title>
</head>
<body>
<div style="width=600">
<pre class="debugme"></pre>
<br/>
</div>
<script>
var OptionsBackend = chrome.extension.getBackgroundPage().OptionsBackend;
var url_shortener = OptionsBackend.get('url_shortener');
if (url_shortener == 'googl' && tweetManager.shortenerAuth.tokenRequested ) {
if (location.search.search( 'oauth_verifier') != -1 ){
GooglShortener.getAccessToken( location.search );
}
}
</script>
</body>
</html>