aboutsummaryrefslogtreecommitdiff
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:16:59 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-19 10:16:59 -0400
commit7faaf4e45737dd06ab3fdf189bd9c1d26ad1349d (patch)
tree595d741cdde5b88e93189b9e4938ad6a98899cf4 /ext/bg/js/media-utility.js
parent07e5e5c15b20077fd325b2546ae96c5a50d4c1bd (diff)
Use 'content' instead of 'source' to contain media file data
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 24686838..febc509a 100644
--- a/ext/bg/js/media-utility.js
+++ b/ext/bg/js/media-utility.js
@@ -52,7 +52,7 @@ const mediaUtility = (() => {
}
}
- function loadImage(mediaType, base64Source) {
+ function loadImage(mediaType, content) {
return new Promise((resolve, reject) => {
const image = new Image();
const eventListeners = new EventListenerCollection();
@@ -64,7 +64,7 @@ const mediaUtility = (() => {
eventListeners.removeAllEventListeners();
reject(new Error('Image failed to load'));
}, false);
- image.src = `data:${mediaType};base64,${base64Source}`;
+ image.src = `data:${mediaType};base64,${content}`;
});
}