Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: server/static/rpcexplorer/rpc-method.html

Issue 2275123002: Milo: pRPC endpoint for getting Buildbot master data (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Renamed stuff Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « milo/appengine/settings/config_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/static/rpcexplorer/rpc-method.html
diff --git a/server/static/rpcexplorer/rpc-method.html b/server/static/rpcexplorer/rpc-method.html
index c0d9edb4b9dda1776f2cef09b7798ba24ae6f700..274c70fcf1dc185d7124cd34113a9be3b6eb91db 100644
--- a/server/static/rpcexplorer/rpc-method.html
+++ b/server/static/rpcexplorer/rpc-method.html
@@ -161,7 +161,11 @@
},
getAccessToken: function() {
- var user = gapi.auth2.getAuthInstance().currentUser.get();
+ var authInstance = gapi.auth2.getAuthInstance();
+ if (!authInstance) {
+ return null;
+ }
+ var user = authInstance.currentUser.get();
if (!user) {
return null;
}
« no previous file with comments | « milo/appengine/settings/config_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698