mirror of https://github.com/vector-im/riot-web
Merge pull request #3944 from stoically/develop
Use https for recaptcha for all non-http protocolspull/21833/head
commit
f3fc95296e
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue