diff options
-rw-r--r-- | ext/mixed/js/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/core.js b/ext/mixed/js/core.js index 6d0a5f0e..db7fc69b 100644 --- a/ext/mixed/js/core.js +++ b/ext/mixed/js/core.js @@ -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'); |