Load demo img

This commit is contained in:
Jake Archibald
2020-11-27 13:26:33 +00:00
parent 02e0206285
commit b1fc4d1c57

View File

@@ -103,6 +103,16 @@ export default class Intro extends Component<Props, State> {
);
});
}
// TODO: remove this
const demo = demos[3];
fetch(demo.url)
.then((r) => r.blob())
.then((blob) =>
this.props.onFile!(
new File([blob], demo.filename, { type: blob.type }),
),
);
}
componentWillUnmount() {