aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/media-loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed/js/media-loader.js')
-rw-r--r--ext/mixed/js/media-loader.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/media-loader.js b/ext/mixed/js/media-loader.js
index fc6e93d1..70d7bad9 100644
--- a/ext/mixed/js/media-loader.js
+++ b/ext/mixed/js/media-loader.js
@@ -27,13 +27,13 @@ class MediaLoader {
}
async loadMedia(path, dictionaryName, onLoad, onUnload) {
- const token = this.token;
+ const token = this._token;
const data = {onUnload, loaded: false};
this._loadMediaData.push(data);
const media = await this.getMedia(path, dictionaryName);
- if (token !== this.token) { return; }
+ if (token !== this._token) { return; }
onLoad(media.url);
data.loaded = true;