Admin Portal - Profile

This commit is contained in:
hillelcoren 2022-09-29 18:35:08 +00:00
parent f2df07a36a
commit 9dc1cd2aae

View File

@ -119676,6 +119676,11 @@
else else
return null; return null;
}, },
untrimUrl(url) {
if (B.JSString_methods.startsWith$1(url, "http://") || B.JSString_methods.startsWith$1(url, "https://"))
return url;
return "https://" + url;
},
trimUrl(url) { trimUrl(url) {
url = B.JSString_methods.replaceFirst$2(B.JSString_methods.replaceFirst$2(url, "http://", ""), "https://", ""); url = B.JSString_methods.replaceFirst$2(B.JSString_methods.replaceFirst$2(url, "http://", ""), "https://", "");
return B.JSString_methods.startsWith$1(url, "www.") ? B.JSString_methods.replaceFirst$2(url, "www.", "") : url; return B.JSString_methods.startsWith$1(url, "www.") ? B.JSString_methods.replaceFirst$2(url, "www.", "") : url;
@ -429787,7 +429792,7 @@
}; };
A._ClientViewFullwidthState_build__closure.prototype = { A._ClientViewFullwidthState_build__closure.prototype = {
call$0() { call$0() {
return A.launchUrl(A.Uri_parse(this.client.website, 0, null)); return A.launchUrl(A.Uri_parse(A.untrimUrl(this.client.website), 0, null));
}, },
$signature: 28 $signature: 28
}; };
@ -484258,7 +484263,7 @@
}; };
A._VendorViewFullwidthState_build__closure.prototype = { A._VendorViewFullwidthState_build__closure.prototype = {
call$0() { call$0() {
return A.launchUrl(A.Uri_parse(this.vendor.website, 0, null)); return A.launchUrl(A.Uri_parse(A.untrimUrl(this.vendor.website), 0, null));
}, },
$signature: 28 $signature: 28
}; };