Use filled_black/outline themes, remove itp_support
This commit is contained in:
@@ -69,7 +69,6 @@ export async function auth() {
|
|||||||
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',
|
||||||
@@ -83,8 +82,10 @@ export async function auth() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||||
google.accounts.id.renderButton(signin, {
|
google.accounts.id.renderButton(signin, {
|
||||||
type: 'standard',
|
type: 'standard',
|
||||||
|
theme: isDark ? 'outline' : 'filled_black',
|
||||||
size: 'large',
|
size: 'large',
|
||||||
text: 'sign_in_with',
|
text: 'sign_in_with',
|
||||||
shape: 'pill',
|
shape: 'pill',
|
||||||
|
|||||||
Reference in New Issue
Block a user