fix: also read taler+http

This commit is contained in:
Sebastian 2023-03-02 08:32:49 -03:00
parent 9922192b0d
commit 7635bbf281
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069

View File

@ -214,12 +214,10 @@ export function QrReaderPage({ onDetected }: Props): VNode {
function onChange(str: string) {
if (!!str) {
if (!str.startsWith("taler://")) {
if (classifyTalerUri(str) === TalerUriType.Unknown) {
setError(
i18n.str`URI is not valid. Taler URI should start with "taler://"`,
);
} else if (classifyTalerUri(str) === TalerUriType.Unknown) {
setError(i18n.str`Unknown type of Taler URI`);
} else {
setError(undefined);
}