We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fe8d22 commit e44a467Copy full SHA for e44a467
snippet.js
@@ -1,6 +1,6 @@
1
// MIT license, see: https://github.com/tjcrowder/simple-snippets-console/blob/master/LICENSE
2
var snippet = {
3
- version: "1.0",
+ version: "1.01",
4
5
// Writes out the given text in a monospaced paragraph tag, escaping
6
// & and < so they aren't rendered as HTML.
@@ -9,6 +9,8 @@ var snippet = {
9
msg = msg.join();
10
} else if (typeof object === "object") {
11
msg = msg === null ? "null" : JSON.stringify(msg);
12
+ } else {
13
+ msg = String(msg);
14
}
15
document.body.insertAdjacentHTML(
16
'beforeend',
0 commit comments