Skip to content

Commit

Permalink
Merge pull request #374 from WebReflection/moz-extension
Browse files Browse the repository at this point in the history
Enable moz-extension:// too
  • Loading branch information
jeromewu authored Dec 18, 2019
2 parents 2db7607 + 5a7576c commit 5c22cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/node/loadImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = async (image) => {
}

if (typeof image === 'string') {
if (isURL(image) || image.startsWith('chrome-extension://') || image.startsWith('file://')) {
if (isURL(image) || image.startsWith('moz-extension://') || image.startsWith('chrome-extension://') || image.startsWith('file://')) {
const { data: _data } = await axios.get(image, { responseType: 'arraybuffer' });
data = _data;
} else if (/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(image)) {
Expand Down

0 comments on commit 5c22cd5

Please sign in to comment.