diff options
author | Determinant <[email protected]> | 2019-01-28 01:59:42 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2019-01-28 01:59:42 -0500 |
commit | 1d2773cbf4c15fd5b1384f7bd993edb63a460c3a (patch) | |
tree | 279aaa50a9f6189cd50bb6ad0207b93a44049929 /oauth.js | |
parent | 9eec5b0d0ca748a73abe23511688bbba9b906c22 (diff) |
use React; impl the prototype
Diffstat (limited to 'oauth.js')
-rw-r--r-- | oauth.js | 13 |
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); - }); - }); - }); -}; |