fixed saving site from "fake web site" field when configuring openvpn over cloak via wizard

This commit is contained in:
vladimir.kuznetsov 2023-03-16 18:59:06 +03:00
parent a5cf2d37d4
commit 7e1bcf84f0

View file

@ -54,12 +54,12 @@ You SHOULD set this website address to some foreign website which is not blocked
text: WizardLogic.lineEditHighWebsiteMaskingText text: WizardLogic.lineEditHighWebsiteMaskingText
onEditingFinished: { onEditingFinished: {
let _text = website_masking.text let _text = website_masking.text
_text.replace("http://", ""); _text = _text.replace("http://", "");
_text.replace("https://", ""); _text = _text.replace("https://", "");
if (!_text) { if (!_text) {
return return
} }
_text = _text.split("/").first(); _text = _text.split("/")[0];
WizardLogic.lineEditHighWebsiteMaskingText = _text WizardLogic.lineEditHighWebsiteMaskingText = _text
} }
onAccepted: { onAccepted: {