Skip to content

Commit fe88542

Browse files
committed
Add logging
1 parent 282f169 commit fe88542

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

inst/htmlwidgets/rhtmlPictographs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/htmlwidgets/rhtmlPictographs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theSrc/scripts/imageTypes/url.imagetype.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@ class UrlType extends BaseImageType {
9696

9797
this.addClipId(clipId)
9898

99-
return new Promise((resolve) => { this.imageHandle.on('load', () => resolve(), { once: true }) })
99+
return new Promise((resolve) => {
100+
this.imageHandle.on('load', () => {
101+
console.log(this.config.url + ' loaded')
102+
resolve()
103+
}, { once: true })
104+
})
100105
}
101106
}
102107

0 commit comments

Comments
 (0)