diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-03-05 22:14:41 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-03-05 22:14:41 -0800 |
commit | e27355a6b01c3e8b31d30951105bd13e84fedef1 (patch) | |
tree | 9d3fd17c21d15ee3a43c868f810e00f58b1a6b30 /ext/bg/js | |
parent | 37a76bab2f044727eb507d4fce114e7c7299cf76 (diff) |
don't display errors on search page when anki is enabled but not open
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/display-window.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/display-window.js b/ext/bg/js/display-window.js index f0d920e5..c3890721 100644 --- a/ext/bg/js/display-window.js +++ b/ext/bg/js/display-window.js @@ -28,7 +28,7 @@ window.displayWindow = new class extends Display { } definitionsAddable(definitions, modes) { - return instYomi().definitionsAddable(definitions, modes); + return instYomi().definitionsAddable(definitions, modes).catch(() => []); } templateRender(template, data) { |