From 22a97d916fc6ecab1200b0ffea18cf2d5c9923d4 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sun, 5 Apr 2020 20:42:23 +0300 Subject: fix NOT (a OR B) to NOT (a AND b) --- ext/mixed/js/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- cgit v1.2.3