summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-07-20 09:01:40 -0700
committerAlex Yatskov <alex@foosoft.net>2016-07-20 09:01:40 -0700
commitab27ef0096f342e777c039e8949f0662b6af3f8d (patch)
tree5ebfa4caf97cd3c4a03ae61fa77e694f96cb272f /ext
parente32f31fa430d1f024ca38a29cef0fb16fcc0a92a (diff)
Fixing audio not working on some pages
Diffstat (limited to 'ext')
-rw-r--r--ext/fg/js/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js
index 10e8a0ae..587ced86 100644
--- a/ext/fg/js/client.js
+++ b/ext/fg/js/client.js
@@ -171,9 +171,9 @@ class Client {
api_playAudio(index) {
const definition = this.definitions[index];
- let url = `https://assets.languagepod101.com/dictionary/japanese/audiomp3.php?kanji=${definition.expression}`;
+ let url = `https://assets.languagepod101.com/dictionary/japanese/audiomp3.php?kanji=${encodeURIComponent(definition.expression)}`;
if (definition.reading) {
- url += `&kana=${definition.reading}`;
+ url += `&kana=${encodeURIComponent(definition.reading)}`;
}
for (let key in this.audio) {