mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-25 00:11:43 +02:00
Use https for recaptcha for all non-http protocols
Signed-off-by: stoically <stoically@protonmail.com>
This commit is contained in:
parent
988ae14d35
commit
ff195381e9
@ -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…
x
Reference in New Issue
Block a user