1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-17 17:42:41 +03:00

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

View File

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