From 6116a495205b78f6a892b16ddd1eb5d26445c83d Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Mon, 15 May 2023 11:41:00 +0700 Subject: [PATCH] fix(web): missing break-statements in switch --- web/src/engine/attachment/src/pageContextAttachment.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/engine/attachment/src/pageContextAttachment.ts b/web/src/engine/attachment/src/pageContextAttachment.ts index 1c26793a19..4cd8c19781 100644 --- a/web/src/engine/attachment/src/pageContextAttachment.ts +++ b/web/src/engine/attachment/src/pageContextAttachment.ts @@ -1087,10 +1087,13 @@ export class PageContextAttachment extends EventEmitter { switch(n) { case 0: fs=fsDefault; + break; case 1: fs = getComputedStyle(ipInput[0]).fontFamily || ''; + break; case 2: fs = getComputedStyle(ipTextArea[0]).fontFamily || ''; + break; } if(typeof(fs) == 'undefined' || fs == 'monospace') { fs=fsDefault;