Spaces:
Paused
Paused
Update static/scripts.js
Browse files- static/scripts.js +5 -0
static/scripts.js
CHANGED
|
@@ -105,6 +105,11 @@ async function handleFile(file) {
|
|
| 105 |
const apiKey = localStorage.getItem('gemini_api_key');
|
| 106 |
if (!apiKey) {
|
| 107 |
showToast('Please enter and save your Gemini API key before uploading.', 'error');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
return;
|
| 109 |
}
|
| 110 |
|
|
|
|
| 105 |
const apiKey = localStorage.getItem('gemini_api_key');
|
| 106 |
if (!apiKey) {
|
| 107 |
showToast('Please enter and save your Gemini API key before uploading.', 'error');
|
| 108 |
+
// Add delay for second toast
|
| 109 |
+
setTimeout(() => {
|
| 110 |
+
showToast('See the help button at the top for details.', 'error');
|
| 111 |
+
}, 3000);
|
| 112 |
+
|
| 113 |
return;
|
| 114 |
}
|
| 115 |
|