We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b97efd9 commit 66752e9Copy full SHA for 66752e9
Build/index.html
@@ -259,7 +259,19 @@ <h1>HTMLChat</h1>
259
<!-- JavaScript -->
260
<script src="https://cdn.jsdelivr.net/npm/eruda"></script>
261
<script>
262
- eruda.init();
+ // Guard eruda initialization so missing CDN won't throw
263
+ (function() {
264
+ try {
265
+ if (window.eruda && typeof window.eruda.init === 'function') {
266
+ window.eruda.init();
267
+ } else {
268
+ // eruda didn't load or not available - silently continue
269
+ console.debug('eruda not available or blocked - skipping debug console init');
270
+ }
271
+ } catch (e) {
272
+ console.warn('eruda.init() failed:', e);
273
274
+ })();
275
</script>
276
<script type="module" src="src/main.js"></script>
277
</body>
0 commit comments