notes
notes copied to clipboard
When Backend is in Tor mode, load embedded images, etc over Tor
Right now Electron does the requests directly, and we need to intercept them.
Possible solution from https://github.com/rexxars/react-markdown#options --
transformImageUri - function|null Function that gets called for each encountered image with a single argument - uri. The returned value is used in place of the original.
This looks handy in general and could possibly apply here: https://github.com/rexxars/react-markdown/issues/29#issuecomment-231556543