aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/client.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-04 20:08:22 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-04 20:08:22 -0700
commitbc11e7cbe3a3a3c57967f78933302f7a06dfde24 (patch)
tree06bba5ddc6ef96382fbc652da35d5e94ac5a2538 /ext/fg/js/client.js
parent320d9bca0e2f4e4a66e58672898722dfeb28f7d4 (diff)
Add note links
Diffstat (limited to 'ext/fg/js/client.js')
-rw-r--r--ext/fg/js/client.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js
index 8495a354..2d80b35e 100644
--- a/ext/fg/js/client.js
+++ b/ext/fg/js/client.js
@@ -80,6 +80,7 @@ class Client {
onFrameMessage(e) {
const {action, data} = e.data, handlers = {
+ addNote: this.addNote,
displayKanji: this.displayKanji
};
@@ -117,6 +118,10 @@ class Client {
});
}
+ addNote({mode, index}) {
+ console.log(mode, index);
+ }
+
displayKanji(kanji) {
findKanji(kanji, (results) => {
renderText(