Skip to content

Commit

Permalink
Fix encrypted images not showing inline.
Browse files Browse the repository at this point in the history
Updates #1182 #2554
  • Loading branch information
jcbrand committed Aug 24, 2021
1 parent 8eac031 commit f739b9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/headless/utils/url.js
Expand Up @@ -3,9 +3,10 @@ import log from '@converse/headless/log';
import { api } from '@converse/headless/core';

function checkTLS (uri) {
const uri_protocol = uri.protocol().toLowerCase();
return (
window.location.protocol === 'http:' ||
(window.location.protocol === 'https:' && uri.protocol().toLowerCase() === 'https')
(window.location.protocol === 'https:' && ['http', 'aesgcm'].includes(uri_protocol))
);
}

Expand Down

0 comments on commit f739b9d

Please sign in to comment.