summaryrefslogtreecommitdiff
path: root/ext/js/display/sandbox/structured-content-generator.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-03-14 21:42:33 -0400
committerGitHub <noreply@github.com>2022-03-14 21:42:33 -0400
commit4e15f923297599869e9d695940c9c56d81b0307d (patch)
tree4d509d89b638518fd123da229798dc163a082984 /ext/js/display/sandbox/structured-content-generator.js
parent59ae55252e69f844ab914c1eb516ac851f08ac89 (diff)
Rename MediaLoader to DisplayContentManager (#2087)
Diffstat (limited to 'ext/js/display/sandbox/structured-content-generator.js')
-rw-r--r--ext/js/display/sandbox/structured-content-generator.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/display/sandbox/structured-content-generator.js b/ext/js/display/sandbox/structured-content-generator.js
index e45713e7..799da586 100644
--- a/ext/js/display/sandbox/structured-content-generator.js
+++ b/ext/js/display/sandbox/structured-content-generator.js
@@ -16,8 +16,8 @@
*/
class StructuredContentGenerator {
- constructor(mediaLoader, document) {
- this._mediaLoader = mediaLoader;
+ constructor(contentManager, document) {
+ this._contentManager = contentManager;
this._document = document;
}
@@ -141,8 +141,8 @@ class StructuredContentGenerator {
aspectRatioSizer.style.paddingTop = `${invAspectRatio * 100.0}%`;
- if (this._mediaLoader !== null) {
- this._mediaLoader.loadMedia(
+ if (this._contentManager !== null) {
+ this._contentManager.loadMedia(
path,
dictionary,
(url) => this._setImageData(node, image, imageBackground, url, false),