| 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;
|
| }
|
|
|