aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/sandbox/structured-content-generator.js
diff options
context:
space:
mode:
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),