Fix eslint

pull/8689/head
Benedikt Werner 2021-04-17 16:49:49 +02:00
parent 271aca70dd
commit a43df885b7
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 1 additions and 3 deletions

View File

@ -124,11 +124,9 @@ const setupHooks = (ctrl: Ctrl, chatEl: HTMLInputElement) => {
const el = e.target as HTMLInputElement,
txt = el.value;
try {
storage.set(txt);
} catch {}
el.removeAttribute('placeholder');
if (!ctrl.opts.public) el.classList.toggle('whisper', !!txt.match(whisperRegex));
storage.set(txt);
})
);