summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-04-05 20:42:23 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2020-04-05 20:42:23 +0300
commit22a97d916fc6ecab1200b0ffea18cf2d5c9923d4 (patch)
tree398951de43ca77acd6174c5846313e1b269422c7
parent5596a8f6f7e23f6dfe45dc83bf077b0b688b84fb (diff)
fix NOT (a OR B) to NOT (a AND b)
-rw-r--r--ext/mixed/js/core.js2
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');