diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2020-02-27 13:36:50 -0500 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2020-02-27 13:36:50 -0500 |
commit | 67dfa43e8df1dbf3a3238a452531c10da46325b8 (patch) | |
tree | ad7529d0b188db157de4b5622acc9b4603b8b0b9 | |
parent | b5cec405f40f6e5b5d444613f5f2f6ebc42507aa (diff) | |
download | patchfoo-67dfa43e8df1dbf3a3238a452531c10da46325b8.tar.gz patchfoo-67dfa43e8df1dbf3a3238a452531c10da46325b8.zip |
Render more about values
-rw-r--r-- | lib/serve.js | 7 |
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)) } |