Skip to content

Commit

Permalink
Use debugDescription of NSData to keep compatibility with xcode 11 (#205
Browse files Browse the repository at this point in the history
)
  • Loading branch information
coderitual committed Sep 17, 2020
1 parent 909e174 commit e37e62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asketch2sketch/helpers/fixImageFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function getImageDataFromUrl(url) {

const firstByte = fetchedData
.subdataWithRange(NSMakeRange(0, 1))
.description();
.debugDescription();

// Check for first byte. Must use non-type-exact matching (!=).
// 0xFF = JPEG, 0x89 = PNG, 0x47 = GIF, 0x49 = TIFF, 0x4D = TIFF
Expand Down

0 comments on commit e37e62a

Please sign in to comment.