From 211f97b67ba293b448cf24703473d759c8ee5cc7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 3 Jan 2023 11:01:27 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6970 --- app/src/protyle/toolbar/Font.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/toolbar/Font.ts b/app/src/protyle/toolbar/Font.ts index 51c17660c..4ad57c366 100644 --- a/app/src/protyle/toolbar/Font.ts +++ b/app/src/protyle/toolbar/Font.ts @@ -143,6 +143,7 @@ export const fontEvent = (protyle: IProtyle, type?: string, color?: string) => { if (localFontStyles.length > 8) { localFontStyles.splice(7, 1); } + window.siyuan.storage[Constants.LOCAL_FONTSTYLES] = localFontStyles; setStorageVal(Constants.LOCAL_FONTSTYLES, window.siyuan.storage[Constants.LOCAL_FONTSTYLES]); } else { if (localFontStyles.length === 0) {