diff options
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/@next/components/image_loop.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/website/ts/@next/components/image_loop.tsx b/packages/website/ts/@next/components/image_loop.tsx index 8b3ee2eb9..2dc6c7aee 100644 --- a/packages/website/ts/@next/components/image_loop.tsx +++ b/packages/website/ts/@next/components/image_loop.tsx @@ -20,10 +20,8 @@ export class ImageLoop extends React.Component<Props> { public componentDidMount(): void { const domImage = React.Children.only(this.props.children); - debugger; - this._img = new Image(1446, 407); - this._img.src = domImage.src; + this._img.src = domImage.props.src; this._ctx = this._canvas.current.getContext('2d'); this._img.onload = this.updateCanvas.bind(this); |