fix NOT (a OR B) to NOT (a AND b)
This commit is contained in:
parent
5596a8f6f7
commit
22a97d916f
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user