aboutsummaryrefslogtreecommitdiff
path: root/oauth.js
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-01-28 01:59:42 -0500
committerDeterminant <[email protected]>2019-01-28 01:59:42 -0500
commit1d2773cbf4c15fd5b1384f7bd993edb63a460c3a (patch)
tree279aaa50a9f6189cd50bb6ad0207b93a44049929 /oauth.js
parent9eec5b0d0ca748a73abe23511688bbba9b906c22 (diff)
use React; impl the prototype
Diffstat (limited to 'oauth.js')
-rw-r--r--oauth.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/oauth.js b/oauth.js
deleted file mode 100644
index 96ae811..0000000
--- a/oauth.js
+++ /dev/null
@@ -1,13 +0,0 @@
-window.onload = function() {
- chrome.identity.getAuthToken({interactive: true}, function(token) {
- fetch('https://www.googleapis.com/calendar/v3' + '/users/me/calendarList' + '?access_token=' + token,
- { method: 'GET', async: true }).then((response) => response.json()).then(function(data) {
- var test = document.getElementById('test');
- data.items.map(e => e.summary).forEach(function(e) {
- var entry = document.createElement('li');
- entry.innerText = e;
- test.appendChild(entry);
- });
- });
- });
-};