summaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-28 18:46:15 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-28 18:46:15 -0800
commit8efe5b1fbf6bf1539c93f25b6b87918c1a651f00 (patch)
tree6d407c4dc5dcb6d93ad38c10f2721d5d24ddd2a3 /ext/fg
parentbf9925ec9cabd5a755152aa89df1f87e38d53534 (diff)
workaround for broken const in firefox
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/frame.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/frame.js b/ext/fg/js/frame.js
index 66fa131d..36356f02 100644
--- a/ext/fg/js/frame.js
+++ b/ext/fg/js/frame.js
@@ -118,7 +118,7 @@ class Frame {
}
states.forEach((state, index) => {
- for (const mode in state) {
+ for (let mode in state) {
const button = this.findAddNoteButton(index, mode);
if (state[mode]) {
button.removeClass('disabled');
@@ -147,7 +147,7 @@ class Frame {
url += `&kana=${encodeURIComponent(definition.reading)}`;
}
- for (const key in this.audioCache) {
+ for (let key in this.audioCache) {
this.audioCache[key].pause();
}