Treat svg as binary resource
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
function fetchResource(resource) {
|
function fetchResource(resource) {
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
const isImage = /\.(png|jpe?g|gif|tiff)$/.test(resource);
|
const isImage = /\.(png|jpe?g|gif|tiff|svg)$/.test(resource);
|
||||||
if (isImage) {
|
if (isImage) {
|
||||||
resolve ({
|
resolve ({
|
||||||
isBinary: true,
|
isBinary: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user