From 8efe5b1fbf6bf1539c93f25b6b87918c1a651f00 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 28 Jan 2017 18:46:15 -0800 Subject: workaround for broken const in firefox --- ext/fg/js/frame.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/fg') 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(); } -- cgit v1.2.3