Files
blap/src
Travis Ralston 62ba7dde94 Download PDFs as blobs to avoid empty grey screens
Fixes https://github.com/vector-im/riot-web/issues/8605

The grey screen of sadness comes up when Chrome tries to open the PDF but doesn't have the right CSP headers. To avoid this, we'll just force a download of the PDF through `fetch` and `Blob`. 

There are a few cases where the user might still get a grey screen though: namely if they open the URL in a new tab or when the event content is lying about the file type, or the file is too large to blobify.

`fetch` works in Chrome, Firefox, and our packaged Electron version.
2019-03-29 14:12:48 -06:00
..
2019-03-27 13:03:25 -06:00
2019-01-28 08:52:20 -06:00
2019-02-04 18:38:31 +00:00
2019-01-31 18:52:39 -06:00
2019-02-04 13:40:21 -07:00
2019-02-08 17:34:01 +00:00
2019-02-24 01:38:31 +00:00
2018-10-26 22:50:38 -05:00
2019-01-31 18:52:39 -06:00
2018-10-26 22:50:38 -05:00
2019-03-06 14:55:21 +00:00
2019-01-25 16:13:30 -06:00
2019-02-04 13:40:21 -07:00
2018-10-26 22:50:38 -05:00
2019-01-31 18:52:39 -06:00
2019-01-21 16:05:24 +00:00
2019-02-22 20:47:06 -07:00
2019-03-12 10:28:47 +00:00
2018-11-14 10:06:08 +01:00