summaryrefslogtreecommitdiff
path: root/ext/bg/js/media-utility.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-19 10:24:36 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-19 10:24:43 -0400
commit0e80c0d5d03b51c56e72657a46c868c9a2c1137d (patch)
tree7b9831504db00bbe98479e0e326eeaabbc8f4919 /ext/bg/js/media-utility.js
parent16893b52b141938a32027049b71cc6c6f46dfb93 (diff)
Rename loadImage to loadImageBase64 for clarity
Diffstat (limited to 'ext/bg/js/media-utility.js')
-rw-r--r--ext/bg/js/media-utility.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/media-utility.js b/ext/bg/js/media-utility.js
index 8a46cb49..fcbf9d37 100644
--- a/ext/bg/js/media-utility.js
+++ b/ext/bg/js/media-utility.js
@@ -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
};
})();