aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/frame.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-24 18:34:31 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-24 18:34:31 -0700
commita192a8d8b549d5979a427d86c51f94bb5f4be907 (patch)
tree9581777a8b5fb6832e18d5bcd9f3ea8a9a6bbdff /ext/fg/js/frame.js
parent8143e372cdb61012ec8683feb01688adfa39dde1 (diff)
Plumbing
Diffstat (limited to 'ext/fg/js/frame.js')
-rw-r--r--ext/fg/js/frame.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/fg/js/frame.js b/ext/fg/js/frame.js
index c8f8211e..66932c2c 100644
--- a/ext/fg/js/frame.js
+++ b/ext/fg/js/frame.js
@@ -17,15 +17,11 @@
*/
-function onKanjiQuery(kanji) {
- alert(kanji);
-}
-
function registerKanjiLinks() {
for (const link of [].slice.call(document.getElementsByClassName('kanji-link'))) {
link.addEventListener('click', (e) => {
e.preventDefault();
- onKanjiQuery(e.target.innerHTML);
+ window.parent.postMessage({action: 'displayKanji', data: e.target.innerHTML}, '*');
});
}
}