Rename loadImage to loadImageBase64 for clarity

This commit is contained in:
toasted-nutbread 2020-04-19 10:24:36 -04:00
parent 16893b52b1
commit 0e80c0d5d0
2 changed files with 3 additions and 3 deletions

View File

@ -331,7 +331,7 @@ class DictionaryImporter {
let image;
try {
image = await mediaUtility.loadImage(mediaType, content);
image = await mediaUtility.loadImageBase64(mediaType, content);
} catch (e) {
throw new Error(`Could not load image at path ${JSON.stringify(path)} for ${errorSource}`);
}

View File

@ -52,7 +52,7 @@ const mediaUtility = (() => {
}
}
function loadImage(mediaType, content) {
function loadImageBase64(mediaType, content) {
return new Promise((resolve, reject) => {
const image = new Image();
const eventListeners = new EventListenerCollection();
@ -70,6 +70,6 @@ const mediaUtility = (() => {
return {
getImageMediaTypeFromFileName,
loadImage
loadImageBase64
};
})();