summaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary-importer.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/dictionary-importer.js')
-rw-r--r--ext/bg/js/dictionary-importer.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/dictionary-importer.js b/ext/bg/js/dictionary-importer.js
index 8a4497a3..b5c535bb 100644
--- a/ext/bg/js/dictionary-importer.js
+++ b/ext/bg/js/dictionary-importer.js
@@ -323,7 +323,7 @@ class DictionaryImporter {
throw new Error(`Could not find image at path ${JSON.stringify(path)} for ${errorSource}`);
}
- const source = await file.async('base64');
+ const content = await file.async('base64');
const mediaType = mediaUtility.getImageMediaTypeFromFileName(path);
if (mediaType === null) {
throw new Error(`Could not determine media type for image at path ${JSON.stringify(path)} for ${errorSource}`);
@@ -331,7 +331,7 @@ class DictionaryImporter {
let image;
try {
- image = await mediaUtility.loadImage(mediaType, source);
+ image = await mediaUtility.loadImage(mediaType, content);
} catch (e) {
throw new Error(`Could not load image at path ${JSON.stringify(path)} for ${errorSource}`);
}
@@ -346,7 +346,7 @@ class DictionaryImporter {
mediaType,
width,
height,
- source
+ content
};
context.media.set(path, mediaData);