1const SUPABASE_URL = 'https://ptjuamhgqwoxgybhsyfv.supabase.co'; 2const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InB0anVhbWhncXdveGd5YmhzeWZ2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjkwMjI0MzAsImV4cCI6MjA4NDU5ODQzMH0.CHdHEiA7264CqTf3Te0bgM18iU-OM9O5fJFYtz27yT8'; 3 4// Check if keys are set 5if (SUPABASE_URL === 'YOUR_SUPABASE_URL_HERE' || SUPABASE_ANON_KEY === 'YOUR_SUPABASE_ANON_KEY_HERE') { 6 console.warn('Supabase keys are missing! Please update config.js'); 7} else { 8 console.log('Supabase config loaded. URL:', SUPABASE_URL); 9} 10 11// Initialize Supabase client 12// We use window.supabaseClient to avoid conflict with the window.supabase library object 13if (window.supabase && window.supabase.createClient) { 14 try { 15 window.supabaseClient = window.supabase.createClient(SUPABASE_URL, SUPABASE_ANON_KEY); 16 console.log('Supabase client initialized successfully.'); 17 } catch (error) { 18 console.error('Failed to initialize Supabase client:', error); 19 window.supabaseClient = null; 20 } 21} else { 22 console.error('Supabase library not found on window object.'); 23 window.supabaseClient = null; 24} 25 26// For backward compatibility checking in script.js (though we will update script.js) 27// confusingly, script.js was checking `if (!supabase)` but that referred to the library class usually, 28// or a variable that wasn't defined. We'll make script.js use window.supabaseClient.
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.