simonu5 commited on
Commit
38c8b72
·
verified ·
1 Parent(s): 0827aea

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -1
index.html CHANGED
@@ -585,6 +585,9 @@
585
  <div class="toast-container" id="toastContainer"></div>
586
 
587
  <script>
 
 
 
588
  // ============ I18N ============
589
  const I18N = {
590
  'zh-TW': {
@@ -1539,7 +1542,7 @@
1539
  console.log('Initialization complete');
1540
  }
1541
 
1542
- window.addEventListener('DOMContentLoaded', init);
1543
  </script>
1544
  </body>
1545
  </html>
 
585
  <div class="toast-container" id="toastContainer"></div>
586
 
587
  <script>
588
+ console.log('Script loading...');
589
+ window.onerror = function(msg, url, line) { console.error('Global Error: ' + msg + ' at ' + line); };
590
+
591
  // ============ I18N ============
592
  const I18N = {
593
  'zh-TW': {
 
1542
  console.log('Initialization complete');
1543
  }
1544
 
1545
+ init();
1546
  </script>
1547
  </body>
1548
  </html>