Skip to content

Commit

Permalink
Fixed the bug with changing image sources
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronge-2020 committed Apr 11, 2024
1 parent fc70383 commit 50634a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/wsi.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const createImagebox3Instance = async (imageSource) => {
await imagebox3Instance.init()
}
else if (imagebox3Instance?.getImageSource() !== imageSource) {
imagebox3Instance.changeImageSource(imageSource)
await imagebox3Instance.changeImageSource(imageSource)
}
}

Expand Down

0 comments on commit 50634a5

Please sign in to comment.