Use filled_black/outline themes, remove itp_support

This commit is contained in:
Ian Gulliver
2025-12-30 11:15:57 -08:00
parent 463de190de
commit c98854eee7

View File

@@ -69,7 +69,6 @@ export async function auth() {
profile = await new Promise((resolve) => {
google.accounts.id.initialize({
client_id: CLIENT_ID,
itp_support: true,
callback: async (response) => {
const res = await fetch('/auth/google/callback', {
method: 'POST',
@@ -83,8 +82,10 @@ export async function auth() {
}
});
const isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
google.accounts.id.renderButton(signin, {
type: 'standard',
theme: isDark ? 'outline' : 'filled_black',
size: 'large',
text: 'sign_in_with',
shape: 'pill',