mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 22:01:58 -05:00
Fixed string equals in Raster data URL for Node.js
This commit is contained in:
parent
269b93e888
commit
cd7938e363
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ var Raster = this.Raster = Item.extend(/** @lends Raster# */{
|
||||||
// If we're running on the server and it's a string,
|
// If we're running on the server and it's a string,
|
||||||
// check if it is a data URL
|
// check if it is a data URL
|
||||||
var protocol = src.split('/')[0];
|
var protocol = src.split('/')[0];
|
||||||
if (protocol && protocol.equals("data:image")) {
|
if (protocol && protocol == "data:image") {
|
||||||
image.src = src;
|
image.src = src;
|
||||||
} else {
|
} else {
|
||||||
// load it from disk:
|
// load it from disk:
|
||||||
|
|
Loading…
Reference in a new issue