Merge pull request #3944 from stoically/develop

Use https for recaptcha for all non-http protocols
pull/21833/head
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
1 changed files with 1 additions and 1 deletions

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