summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-10 16:12:55 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-18 14:23:34 -0400
commite1ebfb02f724518432b2e1c5ec2a80ff03b38fd8 (patch)
tree78643aa793ddf752c5d4f61db34b3cb64c0f12ac /ext/bg/js
parent823c026533dcd758c2a93038fa526978a5fa9cc3 (diff)
Disable cache on the backend and fix a bug with the cache key
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/backend.js3
-rw-r--r--ext/bg/js/settings/audio.js5
2 files changed, 6 insertions, 2 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 79402e67..9d1fa6c1 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -53,7 +53,8 @@ class Backend {
this.defaultAnkiFieldTemplates = null;
this.audioUriBuilder = new AudioUriBuilder();
this.audioSystem = new AudioSystem({
- audioUriBuilder: this.audioUriBuilder
+ audioUriBuilder: this.audioUriBuilder,
+ useCache: false
});
this.ankiNoteBuilder = new AnkiNoteBuilder({
anki: this.anki,
diff --git a/ext/bg/js/settings/audio.js b/ext/bg/js/settings/audio.js
index 68dfe71e..98ed9b8b 100644
--- a/ext/bg/js/settings/audio.js
+++ b/ext/bg/js/settings/audio.js
@@ -28,7 +28,10 @@ let audioSourceUI = null;
let audioSystem = null;
async function audioSettingsInitialize() {
- audioSystem = new AudioSystem({audioUriBuilder: null});
+ audioSystem = new AudioSystem({
+ audioUriBuilder: null,
+ useCache: true
+ });
const optionsContext = getOptionsContext();
const options = await getOptionsMutable(optionsContext);