You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-10 05:42:29 +03:00
Modify font-regex and declare json type
This commit is contained in:
@@ -25,7 +25,7 @@ import { EventType } from "matrix-js-sdk/src/@types/event";
|
|||||||
|
|
||||||
export default class JSONExporter extends Exporter {
|
export default class JSONExporter extends Exporter {
|
||||||
protected totalSize = 0;
|
protected totalSize = 0;
|
||||||
protected messages: any[] = [];
|
protected messages: Record<string, any>[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
room: Room,
|
room: Room,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const getExportCSS = async (): Promise<string> => {
|
|||||||
|
|
||||||
CSS = CSS.replace(fontFaceRegex, '');
|
CSS = CSS.replace(fontFaceRegex, '');
|
||||||
CSS = CSS.replace(
|
CSS = CSS.replace(
|
||||||
/font-family: Inter/g,
|
/font-family: (Inter|'Inter')/g,
|
||||||
`font-family: -apple-system, BlinkMacSystemFont, avenir next,
|
`font-family: -apple-system, BlinkMacSystemFont, avenir next,
|
||||||
avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif`,
|
avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif`,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user