Extracting file processing handlers

This commit is contained in:
He4eT 2021-02-23 14:43:32 +05:00
commit aa6f7cabf1
3 changed files with 16 additions and 8 deletions

View file

@ -9,6 +9,8 @@ const noopHandlers = [
'onDisable',
'onUpdateInputs',
'onFileNameRequest',
'onFileRead',
'onFileWrite',
'onExit',
'setSend'
].reduce((acc, x) => ((acc[x] = noop), acc), {})