Treat svg as binary resource
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
function fetchResource(resource) {
|
||||
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) {
|
||||
resolve ({
|
||||
isBinary: true,
|
||||
|
||||
Reference in New Issue
Block a user