From e27355a6b01c3e8b31d30951105bd13e84fedef1 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 5 Mar 2017 22:14:41 -0800 Subject: don't display errors on search page when anki is enabled but not open --- ext/bg/js/display-window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/bg') 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) { -- cgit v1.2.3