Skip to content

Commit

Permalink
fix google drive
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Jan 30, 2018
1 parent 8a6f9a7 commit 6785381
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion jzip.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
<script src="jzip.js"></script>
<script src="map.js"></script>
<script src="storage.js"></script>
<meta name="google-signin-scope" content="drive">
<meta name="google-signin-scope" content="https://www.googleapis.com/auth/drive">
<meta name="google-signin-client_id" content="225627196149-0b14oj1dbo6uomb7skb56lu8ocpvb8cn.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script src="https://apis.google.com/js/client.js"></script>
<link href="jzip.css" rel="stylesheet" type="text/css">
<link href="storage.css" rel="stylesheet" type="text/css">
</head>
Expand Down
4 changes: 2 additions & 2 deletions storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ function Storage(defaults) {

}

function onSignIn(authResult) {
if (authResult && !authResult.error) {
function onSignIn(googleUser) {
if (googleUser && !googleUser.error) {
// Access token has been successfully retrieved, requests can be sent to the API.
$('.signedin',$dialog).show();
$('.signedout',$dialog).hide();
Expand Down

0 comments on commit 6785381

Please sign in to comment.