Fixed Javascript crash caused by hidden HTML element
Browse files- website/index.html +1 -1
website/index.html
CHANGED
|
@@ -1215,7 +1215,7 @@ const chatStatus = document.getElementById('chat-status');
|
|
| 1215 |
const chatStatusText = document.getElementById('chat-status-text');
|
| 1216 |
const chatProgressFill = document.getElementById('chat-progress-fill');
|
| 1217 |
const chatSteps = document.getElementById('chat-steps');
|
| 1218 |
-
const chatRouteLabel = document.getElementById('chat-route-label');
|
| 1219 |
|
| 1220 |
let chatBusy = false;
|
| 1221 |
let chatProgressTimer = null;
|
|
|
|
| 1215 |
const chatStatusText = document.getElementById('chat-status-text');
|
| 1216 |
const chatProgressFill = document.getElementById('chat-progress-fill');
|
| 1217 |
const chatSteps = document.getElementById('chat-steps');
|
| 1218 |
+
const chatRouteLabel = document.getElementById('chat-route-label') || document.createElement('span');
|
| 1219 |
|
| 1220 |
let chatBusy = false;
|
| 1221 |
let chatProgressTimer = null;
|