diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-07-18 08:08:31 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-07-18 08:08:31 -0700 |
commit | a567ef360523e71040348fdded761c6d71a6d4d5 (patch) | |
tree | f662ea0b4566c69c21418fd9e5f05c5b7504f078 /ext/fg/js/frame.js | |
parent | cea8471290d906cc268902e82704f8efad82fda6 (diff) |
Pronounce => Play Audio
Diffstat (limited to 'ext/fg/js/frame.js')
-rw-r--r-- | ext/fg/js/frame.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/fg/js/frame.js b/ext/fg/js/frame.js index 9c4b9318..165a9795 100644 --- a/ext/fg/js/frame.js +++ b/ext/fg/js/frame.js @@ -36,12 +36,12 @@ function registerAddNoteLinks() { } } -function registerPronounceLinks() { - for (let link of [].slice.call(document.getElementsByClassName('action-pronounce'))) { +function registerAudioLinks() { + for (let link of [].slice.call(document.getElementsByClassName('action-play-audio'))) { link.addEventListener('click', (e) => { e.preventDefault(); const ds = e.currentTarget.dataset; - window.parent.postMessage({action: 'pronounce', params: ds.index}, '*'); + window.parent.postMessage({action: 'playAudio', params: ds.index}, '*'); }); } } @@ -49,7 +49,7 @@ function registerPronounceLinks() { function onDomContentLoaded() { registerKanjiLinks(); registerAddNoteLinks(); - registerPronounceLinks(); + registerAudioLinks(); } function onMessage(e) { |