Skip to content

Commit e44a467

Browse files
committed
Fix stoopid mistake in log
1 parent 7fe8d22 commit e44a467

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

snippet.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// MIT license, see: https://github.com/tjcrowder/simple-snippets-console/blob/master/LICENSE
22
var snippet = {
3-
version: "1.0",
3+
version: "1.01",
44

55
// Writes out the given text in a monospaced paragraph tag, escaping
66
// & and < so they aren't rendered as HTML.
@@ -9,6 +9,8 @@ var snippet = {
99
msg = msg.join();
1010
} else if (typeof object === "object") {
1111
msg = msg === null ? "null" : JSON.stringify(msg);
12+
} else {
13+
msg = String(msg);
1214
}
1315
document.body.insertAdjacentHTML(
1416
'beforeend',

0 commit comments

Comments
 (0)