fix NOT (a OR B) to NOT (a AND b)

This commit is contained in:
siikamiika 2020-04-05 20:42:23 +03:00
parent 5596a8f6f7
commit 22a97d916f

View File

@ -319,7 +319,7 @@ const yomichan = (() => {
getTemporaryListenerResult(eventHandler, userCallback, timeout=null) {
if (!(
typeof eventHandler.addListener === 'function' ||
typeof eventHandler.addListener === 'function' &&
typeof eventHandler.removeListener === 'function'
)) {
throw new Error('Event handler type not supported');