mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 17:11:30 +03:00
Modify font-regex and declare json type
This commit is contained in:
parent
3efa699b88
commit
5dbc103486
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ import { EventType } from "matrix-js-sdk/src/@types/event";
|
|||
|
||||
export default class JSONExporter extends Exporter {
|
||||
protected totalSize = 0;
|
||||
protected messages: any[] = [];
|
||||
protected messages: Record<string, any>[] = [];
|
||||
|
||||
constructor(
|
||||
room: Room,
|
||||
|
|
|
@ -36,7 +36,7 @@ const getExportCSS = async (): Promise<string> => {
|
|||
|
||||
CSS = CSS.replace(fontFaceRegex, '');
|
||||
CSS = CSS.replace(
|
||||
/font-family: Inter/g,
|
||||
/font-family: (Inter|'Inter')/g,
|
||||
`font-family: -apple-system, BlinkMacSystemFont, avenir next,
|
||||
avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif`,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue