mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-24 23:44:43 +00:00
Merge pull request #1135 from bernardofd/prJan2014
[Fix] loadSVGFromString receives raw buffer instead of string when loading SVG file from disk
This commit is contained in:
commit
172a3d3da2
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@
|
|||
url = url.replace(/^\n\s*/, '').replace(/\?.*$/, '').trim();
|
||||
if (url.indexOf('http') !== 0) {
|
||||
request_fs(url, function(body) {
|
||||
fabric.loadSVGFromString(body, callback, reviver);
|
||||
fabric.loadSVGFromString(body.toString(), callback, reviver);
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue