aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/serve.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 556e70f..5f873e2 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1044,9 +1044,10 @@ Serve.prototype.about = function (path) {
}
function renderAboutOpValue(value) {
- if (!value) return
- if (u.isRef(value.link)) return self.phIdLink(value.link)
- if (value.epoch) return new Date(value.epoch).toUTCString()
+ if (typeof value === 'object' && value !== null) {
+ if (u.isRef(value.link)) return self.phIdLink(value.link)
+ if (value.epoch) return new Date(value.epoch).toUTCString()
+ }
return ph('code', {}, JSON.stringify(value))
}