Skip to content

Commit 693cfb5

Browse files
committed
Address comments
1 parent fb9c4eb commit 693cfb5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

demo/electron/turtle_tf2/renderer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ document.addEventListener('DOMContentLoaded', function () {
6969
if (loadingScreen) {
7070
const loadingText = loadingScreen.querySelector('div:last-child');
7171
if (loadingText) {
72+
const reason = String((err && err.message) || err);
7273
loadingText.textContent =
73-
'Failed to initialize 3D view (WebGL unavailable): ' + err.message;
74+
'Failed to initialize 3D view (WebGL unavailable): ' + reason;
7475
loadingText.style.color = '#ff4444';
7576
}
7677
}

0 commit comments

Comments
 (0)