From 55b4bcda3fa589d18799a021034c04113f4819e9 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Wed, 29 Jan 2020 00:02:01 +0200 Subject: [PATCH] Attempt to fix google signin #3 --- views/includes/external.pug | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/views/includes/external.pug b/views/includes/external.pug index 4b9dce6..663e4b5 100644 --- a/views/includes/external.pug +++ b/views/includes/external.pug @@ -21,7 +21,7 @@ }(document, 'script', 'facebook-jssdk')); fb:login-button(scope="public_profile,email", onlogin="checkLoginState();" data-max-rows="1", data-size="large", data-button-type="login_with", data-show-faces="false", data-auto-logout-link="false", data-use-continue-as="false") if auth.google - script(src="https://apis.google.com/js/platform.js", async, defer) + script(src="https://apis.google.com/js/platform.js?onload=startApp", async, defer) a.login-btn.google-login.float-lg-right i.fab.fa-fw.fa-google span Log in With Google @@ -60,8 +60,6 @@ alert('Failed to log you in using Google.'); }); } - - startApp(); if auth.twitter a.login-btn.twitter-login.login-dialog-pop.float-lg-right(href="/api/external/twitter/login") i.fab.fa-fw.fa-twitter