You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Update Typescript to 4.5 (#7344)
This commit is contained in:
committed by
GitHub
parent
fcc4939075
commit
c96b9413e7
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user