Skip to content

Commit

Permalink
fix: make imageLoadFunction revokeObjectURL (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grammostola authored Aug 17, 2023
1 parent d6c420a commit 7d6357a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/wms.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function imageLoadFunction(loadedImage, src) {
if (data) {
const img = loadedImage.getImage();
const url = URL.createObjectURL(data);
img.addEventListener('loadend', () => {
img.addEventListener('load', () => {
URL.revokeObjectURL(url);
});
img.src = url;
Expand Down

0 comments on commit 7d6357a

Please sign in to comment.