Spaces:
Sleeping
Sleeping
Nathan commited on
Commit ·
aed3df4
1
Parent(s): 91ff24f
Final Fix: Sync Google Keys across all channels
Browse files556 unmodified lines557558559560561562563564565566567568569570571572573574575576556 unmodified linesconst clientSecret = document.getElementById('setting-client-secret').value;if (!clientId || !clientSecret) {alert("⚠️ Please enter your Google Client ID and Secret in 'Advanced Settings' first!");return;}// Auto-save keys before connectingconst saved = await saveSettings();if (!saved) return;const res = await fetch('/api/auth/url', { headers: { 'Authorization': `Bearer ${authToken}` } });const d = await res.json();if (d.url) {window.open(d.url, '_blank');} else {alert("Error: " + (d.error || "Could not get auth URL. Check your keys!"));}}556 unmodified lines557558559560561562563564565566567568569570571572556 unmodified linesconst clientSecret = document.getElementById('setting-client-secret').value;if (!clientId || !clientSecret) {alert("⚠️ Please enter your Google Client ID and Secret in 'Advanced Settings' and click SAVE VAULT first!");return;}const res = await fetch('/api/auth/url', { headers: { 'Authorization': `Bearer ${authToken}` } });const d = await res.json();if (d.url) {window.open(d.url, '_blank');} else {alert("Error: " + (d.error || "Could not get auth URL. Make sure you clicked SAVE VAULT first!"));}}
dashboard/index.html+2-6