From 52ec4902021e4cb7ab1a703e023324bda5aa3cb4 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Wed, 29 Jan 2020 00:04:34 +0200 Subject: [PATCH] I dont care --- views/includes/external.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/includes/external.pug b/views/includes/external.pug index 663e4b5..eb055c4 100644 --- a/views/includes/external.pug +++ b/views/includes/external.pug @@ -30,19 +30,19 @@ var startApp = function() { gapi.load('auth2', function(){ // Retrieve the singleton for the GoogleAuth library and set up the client. - auth2 = gapi.auth2.init({ + var auth2 = gapi.auth2.init({ client_id: '#{auth.google}', cookie_policy: 'single_host_origin', fetch_basic_profile: true }).then(function () { - attachSignin(document.querySelector('.google-login')); + attachSignin(auth2, document.querySelector('.google-login')); }, function (e) { console.error(e); }); }); }; - function attachSignin(element) { + function attachSignin(auth2, element) { auth2.attachClickHandler(element, {}, function (googleUser) { let profile = googleUser.getBasicProfile();