matrix-public-archive/server/hydrogen-render
Michael[tm] Smith 6b493ff807
Only assign `vmContext.global.crypto` if not already global (#143)
Fixes https://github.com/matrix-org/matrix-public-archive/issues/141

Node.js v19 has `crypto` set on the global already, so this change causes `vmContext.global.crypto` to be assigned only if `vmContext.global.crypto` isn’t already defined.

Otherwise, without this change, the room directory fails to render in Node.js v19+, and instead _"TypeError: Cannot set property crypto of `#<Object>` which has only a getter"_ gets thrown.
2022-11-18 12:27:50 -06:00
..
render-hydrogen-to-string-unsafe.js Only assign `vmContext.global.crypto` if not already global (#143) 2022-11-18 12:27:50 -06:00
render-hydrogen-to-string.js Add `Content-Security-Policy` (CSP) (#81) 2022-10-19 12:07:39 -05:00
render-hydrogen-vm-render-script-to-page-html.js Add Matrix favicon (#135) 2022-11-11 14:50:41 -06:00