Spaces:
Running
Running
Update index.html
Browse files- index.html +9 -3
index.html
CHANGED
|
@@ -467,7 +467,7 @@
|
|
| 467 |
}
|
| 468 |
|
| 469 |
async function connect() {
|
| 470 |
-
|
| 471 |
const projectId = document.getElementById('projectId').value.trim();
|
| 472 |
const modelName = document.getElementById('modelSelect').value;
|
| 473 |
|
|
@@ -475,14 +475,20 @@
|
|
| 475 |
addMessage('system', 'Please enter both API Key and Project ID');
|
| 476 |
return;
|
| 477 |
}
|
|
|
|
| 478 |
|
| 479 |
try {
|
| 480 |
document.getElementById('connectBtn').disabled = true;
|
| 481 |
addMessage('system', 'Connecting to Firebase...');
|
| 482 |
|
| 483 |
const firebaseConfig = {
|
| 484 |
-
|
| 485 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 486 |
};
|
| 487 |
|
| 488 |
firebaseApp = initializeApp(firebaseConfig);
|
|
|
|
| 467 |
}
|
| 468 |
|
| 469 |
async function connect() {
|
| 470 |
+
/* const apiKey = document.getElementById('apiKey').value.trim();
|
| 471 |
const projectId = document.getElementById('projectId').value.trim();
|
| 472 |
const modelName = document.getElementById('modelSelect').value;
|
| 473 |
|
|
|
|
| 475 |
addMessage('system', 'Please enter both API Key and Project ID');
|
| 476 |
return;
|
| 477 |
}
|
| 478 |
+
*/
|
| 479 |
|
| 480 |
try {
|
| 481 |
document.getElementById('connectBtn').disabled = true;
|
| 482 |
addMessage('system', 'Connecting to Firebase...');
|
| 483 |
|
| 484 |
const firebaseConfig = {
|
| 485 |
+
apiKey: "AIzaSyB6EeMqhn5kvMEDYRzhtdokA9i0idKtUKo",
|
| 486 |
+
authDomain: "winternut-pay.firebaseapp.com",
|
| 487 |
+
projectId: "winternut-pay",
|
| 488 |
+
storageBucket: "winternut-pay.firebasestorage.app",
|
| 489 |
+
messagingSenderId: "564557307443",
|
| 490 |
+
appId: "1:564557307443:web:a1abf6b0db99ca79560d46",
|
| 491 |
+
measurementId: "G-K07BVBE7FW"
|
| 492 |
};
|
| 493 |
|
| 494 |
firebaseApp = initializeApp(firebaseConfig);
|