This commit is contained in:
Vanessa 2023-01-03 11:01:27 +08:00
parent 24994d993f
commit 211f97b67b

View file

@ -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) {