From 4ea176007d2228364d4d3fa4519898047cef988f Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 24 Sep 2023 11:27:24 -0700 Subject: feat: :lipstick: setting to change font size --- extension/react-app/src/util/index.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extension/react-app/src/util') diff --git a/extension/react-app/src/util/index.ts b/extension/react-app/src/util/index.ts index c4168e13..fd74044d 100644 --- a/extension/react-app/src/util/index.ts +++ b/extension/react-app/src/util/index.ts @@ -41,3 +41,8 @@ export function getMetaKeyLabel(): string { return "⌘"; } } + +export function getFontSize(): number { + const fontSize = localStorage.getItem("fontSize"); + return fontSize ? parseInt(fontSize) : 13; +} -- cgit v1.2.3-70-g09d2