summaryrefslogtreecommitdiff
path: root/ext/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/client.js')
-rw-r--r--ext/client.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/client.js b/ext/client.js
index 85a4ba64..6055dc26 100644
--- a/ext/client.js
+++ b/ext/client.js
@@ -53,8 +53,10 @@ class Client {
this.hidePopup();
} else {
range.setEnd(range.endContainer, range.startOffset + length);
- this.popup.html(renderDefs(results.slice(0, 5)));
- this.showPopup(range);
+ renderTemplate({defs: results.slice(0, 5)}, 'defs.html', (html) => {
+ this.popup.html(html);
+ this.showPopup(range);
+ });
}
});
}