You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Fix desktop captcha check
Change gnarly hardcoded protocol to detect running in the electron app Fixes https://github.com/vector-im/riot-web/issues/8236
This commit is contained in:
@@ -62,7 +62,7 @@ module.exports = React.createClass({
|
|||||||
console.log("Loading recaptcha script...");
|
console.log("Loading recaptcha script...");
|
||||||
window.mx_on_recaptcha_loaded = () => {this._onCaptchaLoaded();};
|
window.mx_on_recaptcha_loaded = () => {this._onCaptchaLoaded();};
|
||||||
const protocol = global.location.protocol;
|
const protocol = global.location.protocol;
|
||||||
if (protocol === "file:") {
|
if (protocol === "vector:") {
|
||||||
const warning = document.createElement('div');
|
const warning = document.createElement('div');
|
||||||
// XXX: fix hardcoded app URL. Better solutions include:
|
// XXX: fix hardcoded app URL. Better solutions include:
|
||||||
// * jumping straight to a hosted captcha page (but we don't support that yet)
|
// * jumping straight to a hosted captcha page (but we don't support that yet)
|
||||||
|
|||||||
Reference in New Issue
Block a user