6b493ff807
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. |
||
---|---|---|
.. | ||
render-hydrogen-to-string-unsafe.js | ||
render-hydrogen-to-string.js | ||
render-hydrogen-vm-render-script-to-page-html.js |