treat all unkown content type as plain text
This commit is contained in:
parent
877a4bb132
commit
9bef462f38
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user