Spaces:
Running
Running
Upload 10 files
Browse files
src/views/InstructorView.js
CHANGED
|
@@ -755,9 +755,9 @@ export function setupInstructorEvents() {
|
|
| 755 |
// Check if updateDashboard is defined in scope
|
| 756 |
// Auto-Restore Room View if exists
|
| 757 |
if (localStorage.getItem('vibecoding_gemini_key')) {
|
| 758 |
-
const
|
| 759 |
const apiKey = localStorage.getItem('vibecoding_gemini_key');
|
| 760 |
-
const success = await initGemini(apiKey);
|
| 761 |
if (success) {
|
| 762 |
geminiEnabled = true;
|
| 763 |
// Check student toggle
|
|
|
|
| 755 |
// Check if updateDashboard is defined in scope
|
| 756 |
// Auto-Restore Room View if exists
|
| 757 |
if (localStorage.getItem('vibecoding_gemini_key')) {
|
| 758 |
+
const GeminiService = await import("../services/gemini.js?t=" + Date.now());
|
| 759 |
const apiKey = localStorage.getItem('vibecoding_gemini_key');
|
| 760 |
+
const success = await GeminiService.initGemini(apiKey);
|
| 761 |
if (success) {
|
| 762 |
geminiEnabled = true;
|
| 763 |
// Check student toggle
|