Remove setImmediate polyfill (#27567)

This commit is contained in:
Michael Telatynski 2024-06-13 16:59:56 +01:00 committed by GitHub
parent 5442d4050d
commit ea16928d35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 6 deletions

View file

@ -194,9 +194,9 @@ export default class Favicon {
}
private setIcon(canvas: HTMLCanvasElement): void {
setImmediate(() => {
setTimeout(() => {
this.setIconSrc(canvas.toDataURL("image/png"));
});
}, 0);
}
private setIconSrc(url: string): void {