don't display errors on search page when anki is enabled but not open

This commit is contained in:
Alex Yatskov 2017-03-05 22:14:41 -08:00
parent 37a76bab2f
commit e27355a6b0

View File

@ -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) {