File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,9 @@ async function downloadCustomPng() {
8080
8181 const img = new Image ()
8282 const loaded = new Promise <void >((resolve , reject ) => {
83+ // oxlint-disable-next-line eslint-plugin-unicorn(prefer-add-event-listener)
8384 img .onload = () => resolve ()
85+ // oxlint-disable-next-line eslint-plugin-unicorn(prefer-add-event-listener)
8486 img .onerror = () => reject (new Error (' Failed to load custom SVG' ))
8587 })
8688 img .src = url
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ export function useSvgToPng() {
66 img . crossOrigin = 'anonymous'
77
88 const loaded = new Promise < void > ( ( resolve , reject ) => {
9+ // oxlint-disable-next-line eslint-plugin-unicorn(prefer-add-event-listener)
910 img . onload = ( ) => resolve ( )
11+ // oxlint-disable-next-line eslint-plugin-unicorn(prefer-add-event-listener)
1012 img . onerror = ( ) => reject ( new Error ( `Failed to load SVG: ${ svgUrl } ` ) )
1113 } )
1214
You can’t perform that action at this time.
0 commit comments