mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
Update getAuthToken usage in gdocs sample.
This commit is contained in:
@@ -54,7 +54,7 @@ function GDocs(selector) {
|
||||
GDocs.prototype.auth = function(opt_callback) {
|
||||
var self = this;
|
||||
try {
|
||||
chrome.experimental.identity.getAuthToken(function(token) {
|
||||
chrome.experimental.identity.getAuthToken({}, function(token) {
|
||||
//log(token);
|
||||
//document.querySelector('#authorize-button').disabled = true;
|
||||
self.accessToken = token;
|
||||
|
||||
Reference in New Issue
Block a user