We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a86c7f5 + 370a804 commit 51853d3Copy full SHA for 51853d3
1 file changed
src/components/vr-logger/vr-logger.js
@@ -22,7 +22,11 @@ AFRAME.registerComponent("vr-logger", {
22
console.log = (...args) => {
23
originalConsoleLog(...args);
24
// Add the console message to the array
25
- this.addMessage(args.map((a) => a.toString()).join(" "));
+ this.addMessage(args.map((a) => {
26
+ if (a === null) return 'null';
27
+ if (a === undefined) return 'undefined';
28
+ return a.toString();
29
+ }).join(" "));
30
};
31
},
32
// Add a message to the console
0 commit comments