treat all unkown content type as plain text

This commit is contained in:
Sebastian 2023-04-09 14:59:00 -03:00
parent 877a4bb132
commit 9bef462f38
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069

View File

@ -59,15 +59,9 @@ function parseTermsOfServiceContent(
} catch (e) {
console.log(e);
}
} else if (type === "text/plain") {
try {
}
const content = text;
return { type: "plain", content };
} catch (e) {
console.log(e);
}
}
return undefined;
}
export type TermsState = {