Removing redundant imports, restoring auto-load

This commit is contained in:
Jake Archibald
2020-12-09 12:38:32 +00:00
parent 32232c7f0b
commit a7a991ae45
2 changed files with 10 additions and 1 deletions

View File

@@ -31,7 +31,6 @@ import Results from './Results';
import WorkerBridge from '../worker-bridge';
import { resize } from 'features/processors/resize/client';
import type SnackBarElement from 'shared/custom-els/snack-bar';
import { Arrow, ExpandIcon } from '../icons';
import Transform from './Transform';
export type OutputType = EncoderType | 'identity';

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() {