Use https for recaptcha for all non-http protocols

Signed-off-by: stoically <stoically@protonmail.com>
This commit is contained in:
stoically 2020-01-22 16:44:47 +01:00
parent 988ae14d35
commit ff195381e9
No known key found for this signature in database
GPG key ID: 3026ED2F90EE0DE9

View file

@ -62,7 +62,7 @@ export default createReactClass({
console.log("Loading recaptcha script...");
window.mx_on_recaptcha_loaded = () => {this._onCaptchaLoaded();};
let protocol = global.location.protocol;
if (protocol === "vector:") {
if (protocol !== "http:") {
protocol = "https:";
}
const scriptTag = document.createElement('script');