forked from external-repos/squoosh
Removing redundant imports, restoring auto-load
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user