diff --git a/CHANGES.md b/CHANGES.md index bd36d41a5..d8ac73447 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changelog +## 9.0.1 (2021-??-??) + +- #2751: Media not rendered when Converse runs in a browser extension + ## 9.0.0 (2021-11-26) - Compress new avatar images before uploading them diff --git a/src/headless/utils/url.js b/src/headless/utils/url.js index 5ff56336e..58cc2e629 100644 --- a/src/headless/utils/url.js +++ b/src/headless/utils/url.js @@ -21,7 +21,7 @@ export function getURI (url) { function checkFileTypes (types, url) { const uri = getURI(url); - if (uri === null || !checkTLS(uri)) { + if (window.location.protocol !== 'chrome-extension:' && (uri === null || !checkTLS(uri))) { return false; } const filename = uri.filename().toLowerCase();