mirror of
https://github.com/flavioribeiro/donut.git
synced 2025-10-05 15:06:51 +08:00
fix unknown msg
This commit is contained in:
@@ -131,7 +131,7 @@ const formattedNow = () => {
|
|||||||
|
|
||||||
const log = (msg, level = "info") => {
|
const log = (msg, level = "info") => {
|
||||||
const el = document.createElement("p")
|
const el = document.createElement("p")
|
||||||
|
|
||||||
if (typeof(msg) !== "string") {
|
if (typeof(msg) !== "string") {
|
||||||
msg = "unknown log msg type " + typeof(msg)
|
msg = "unknown log msg type " + typeof(msg)
|
||||||
level = "error"
|
level = "error"
|
||||||
|
Reference in New Issue
Block a user