Skip to content

Commit

Permalink
fix: stone images were initialized wrongly everytime
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Oct 26, 2020
1 parent 6684735 commit 5a0b4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function skip_too_frequent_requests(f) {
}

function initialize_image_maybe() {
!image && R.image_paths && (R.image = aa2hash(R.image_paths.map(([key, path]) => {
!R.image && R.image_paths && (R.image = aa2hash(R.image_paths.map(([key, path]) => {
const img = new Image(); img.src = path; return [key, img]
})))
}
Expand Down

0 comments on commit 5a0b4b6

Please sign in to comment.