Spaces:
Running
Running
Upload 8 files
Browse files
src/views/InstructorView.js
CHANGED
|
@@ -232,6 +232,8 @@ export async function renderInstructorView() {
|
|
| 232 |
}
|
| 233 |
|
| 234 |
export function setupInstructorEvents() {
|
|
|
|
|
|
|
| 235 |
// Auth Logic
|
| 236 |
const authBtn = document.getElementById('auth-btn');
|
| 237 |
const pwdInput = document.getElementById('instructor-password');
|
|
@@ -712,8 +714,7 @@ export function setupInstructorEvents() {
|
|
| 712 |
enterRoom(savedRoomCode);
|
| 713 |
}
|
| 714 |
|
| 715 |
-
// Module-level variable to track subscription
|
| 716 |
-
let roomUnsubscribe = null;
|
| 717 |
|
| 718 |
function enterRoom(roomCode) {
|
| 719 |
createContainer.classList.add('hidden');
|
|
|
|
| 232 |
}
|
| 233 |
|
| 234 |
export function setupInstructorEvents() {
|
| 235 |
+
let roomUnsubscribe = null;
|
| 236 |
+
|
| 237 |
// Auth Logic
|
| 238 |
const authBtn = document.getElementById('auth-btn');
|
| 239 |
const pwdInput = document.getElementById('instructor-password');
|
|
|
|
| 714 |
enterRoom(savedRoomCode);
|
| 715 |
}
|
| 716 |
|
| 717 |
+
// Module-level variable to track subscription (Moved to top)
|
|
|
|
| 718 |
|
| 719 |
function enterRoom(roomCode) {
|
| 720 |
createContainer.classList.add('hidden');
|