fix(web): missing break-statements in switch

This commit is contained in:
Joshua A. Horton 2023-05-15 11:41:00 +07:00
parent a48235043d
commit 6116a49520

View file

@ -1087,10 +1087,13 @@ export class PageContextAttachment extends EventEmitter<EventMap> {
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;