mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 15:31:22 +02:00
blind fix for captcha on electron
This commit is contained in:
parent
9bf98161a2
commit
1b46ab7a80
@ -54,8 +54,9 @@ module.exports = React.createClass({
|
||||
console.log("Loading recaptcha script...");
|
||||
var scriptTag = document.createElement('script');
|
||||
window.mx_on_recaptcha_loaded = () => {this._onCaptchaLoaded()};
|
||||
var protocol = global.location.protocol === "file:" ? "https:" : global.location.protocol;
|
||||
scriptTag.setAttribute(
|
||||
'src', global.location.protocol+"//www.google.com/recaptcha/api.js?onload=mx_on_recaptcha_loaded&render=explicit"
|
||||
'src', protocol+"//www.google.com/recaptcha/api.js?onload=mx_on_recaptcha_loaded&render=explicit"
|
||||
);
|
||||
this.refs.recaptchaContainer.appendChild(scriptTag);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user