mirror of
https://github.com/idrawjs/idraw
synced 2026-05-23 17:48:23 +00:00
13 lines
272 B
TypeScript
13 lines
272 B
TypeScript
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
// @ts-ignore
|
|
window.Image = class {
|
|
constructor() {
|
|
setTimeout(() => {
|
|
// @ts-ignore
|
|
if (typeof this.onload === 'function') {
|
|
// @ts-ignore
|
|
this.onload();
|
|
}
|
|
}, 50);
|
|
}
|
|
};
|