summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
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) {