Merge pull request #3944 from stoically/develop

Use https for recaptcha for all non-http protocols
This commit is contained in:
J. Ryan Stinnett 2020-01-27 19:55:23 +00:00 committed by GitHub
commit f3fc95296e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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');