Update Typescript to 4.5 (#7344)
This commit is contained in:
parent
fcc4939075
commit
c96b9413e7
4 changed files with 33 additions and 24 deletions
|
@ -131,8 +131,8 @@ async function createThumbnail(
|
|||
canvas = new window.OffscreenCanvas(targetWidth, targetHeight);
|
||||
} else {
|
||||
canvas = document.createElement("canvas");
|
||||
canvas.width = targetWidth;
|
||||
canvas.height = targetHeight;
|
||||
(canvas as HTMLCanvasElement).width = targetWidth;
|
||||
(canvas as HTMLCanvasElement).height = targetHeight;
|
||||
}
|
||||
|
||||
const context = canvas.getContext("2d");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue