mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Merge pull request #3944 from stoically/develop
Use https for recaptcha for all non-http protocols
This commit is contained in:
commit
f3fc95296e
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue