-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackground.html
41 lines (35 loc) · 1.12 KB
/
background.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
35
36
37
38
39
40
41
<!DOCTYPE html>
<!--
* Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
* source code is governed by a BSD-style license that can be found in the
* LICENSE file.
*
-->
<html>
<head>
<script type="text/javascript" src="scripts/chrome_ex_oauthsimple.js"></script>
<script type="text/javascript" src="scripts/chrome_ex_oauth.js"></script>
<script type="text/javascript">
var DOCLIST_SCOPE = 'http://api.rdio.com/1/';
var DOCLIST_FEED = 'http://api.rdio.com/1/';
var RDIO_PREF = true;
var oauth = ChromeExOAuth.initBackgroundPage({
'request_url': 'http://api.rdio.com/oauth/request_token',
'authorize_url': 'https://www.rdio.com/oauth/authorize',
'access_url': 'http://api.rdio.com/oauth/access_token',
'consumer_key': '38xb2zwrnudnwd8urnkgu3f7',
'consumer_secret': 'uHMXvmKHg2',
'scope': DOCLIST_SCOPE,
'app_name': 'FstFwd'
});
function logout() {
oauth.clearTokens();
};
var setRdioPref = function(rdio_select){
RDIO_PREF = rdio_select;
};
</script>
</head>
<body>
</body>
</html>