File size: 626 Bytes
6c45239
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// scripts/app.js --- TEST 1

// We are only importing ui.js to see if it loads correctly.
import { initUI } from './ui.js';
// import { initChat } from './chat.js';
// import { initVideo } from './video.js';

document.addEventListener('DOMContentLoaded', () => {
    // We are only running the UI initialization for this test.
    try {
        initUI();
        window.logToScreen("SUCCESS: ui.js was imported and initialized.");
    } catch(e) {
        window.logToScreen(`ERROR initializing ui.js: ${e.message}`);
    }
});

// NOTE: The on-screen logger is now in your index.html, so we don't need it here for this test.