Skip to content

Commit

Permalink
Changed getImage call to getImageSource
Browse files Browse the repository at this point in the history
  • Loading branch information
PrafulB committed Feb 25, 2024
1 parent 7f43cbb commit 7af790b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ imgBox.loadTile = async ({fileURL, tileX, tileY, tileWidth, tileHeight, tileSize
tileSizeElement.value = tileSize
}

if (imgBox.image?.getImage() !== decodeURIComponent(fileURL)) {
if (imgBox.image?.getImageSource() !== decodeURIComponent(fileURL)) {
const numWorkers = 4
imgBox.image = new Imagebox3(decodeURIComponent(fileURL), numWorkers)
await imgBox.image.init()
Expand Down

0 comments on commit 7af790b

Please sign in to comment.