Add color-scheme and itp_support fixes for Google sign-in button
This commit is contained in:
@@ -63,11 +63,13 @@ export async function auth() {
|
|||||||
|
|
||||||
const signin = document.getElementById('signin');
|
const signin = document.getElementById('signin');
|
||||||
signin.style.display = 'flex';
|
signin.style.display = 'flex';
|
||||||
|
signin.style.colorScheme = 'light';
|
||||||
document.body.style.opacity = 1;
|
document.body.style.opacity = 1;
|
||||||
|
|
||||||
profile = await new Promise((resolve) => {
|
profile = await new Promise((resolve) => {
|
||||||
google.accounts.id.initialize({
|
google.accounts.id.initialize({
|
||||||
client_id: CLIENT_ID,
|
client_id: CLIENT_ID,
|
||||||
|
itp_support: true,
|
||||||
callback: async (response) => {
|
callback: async (response) => {
|
||||||
const res = await fetch('/auth/google/callback', {
|
const res = await fetch('/auth/google/callback', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user