summaryrefslogtreecommitdiff
path: root/ext/mixed/js/media-loader.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-24 11:54:08 -0500
committerGitHub <noreply@github.com>2020-11-24 11:54:08 -0500
commitde299c64ae0d32f316d1679b79dd1ad72e1c0ed9 (patch)
treee33bca0a10693a6d8dcdad3c516da26d26b6250f /ext/mixed/js/media-loader.js
parent068b1eef71ed1167e7e39effa00cda7deb9251f2 (diff)
Display updates (#1057)
* Fix history assignment on the search page * Use clear instead of assigned * Simplify definitions assignment * Organize * Fix query not being cleared * Fix media loading * Fix potential issue with options not being assigned * Catch error when frameId is null, causing infinite loop * Fix frontend construction parameters
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;