2
0
Эх сурвалжийг харах

Bugfix: Image previews not loading when not serving Converse locally

Fixes #2634
JC Brand 3 жил өмнө
parent
commit
8854f67c20

+ 4 - 0
CHANGES.md

@@ -1,5 +1,9 @@
 # Changelog
 
+## 8.0.1 (Unreleased)
+
+- #2634: Image previews not loading when not serving Converse locally
+
 ## 8.0.0 (2021-09-03)
 
 - Requires Node 12 or above

+ 1 - 0
package-lock.json

@@ -5,6 +5,7 @@
 	"requires": true,
 	"packages": {
 		"": {
+			"name": "converse.js",
 			"version": "8.0.0",
 			"license": "MPL-2.0",
 			"dependencies": {

+ 1 - 1
src/headless/utils/url.js

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