Skip to content

Commit 5a7576c

Browse files
authoredDec 17, 2019
Enable moz-extension:// too
This is a follow up for #373
1 parent 2db7607 commit 5a7576c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/worker/node/loadImage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = async (image) => {
1919
}
2020

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

0 commit comments

Comments
 (0)
Please sign in to comment.