Edge file constructor fix (#180)

* Hacking around lack of `new File` in Edge.

* Less hacky solution - preserves types
This commit is contained in:
Jake Archibald
2018-09-28 14:44:59 +01:00
committed by GitHub
parent 5e66e0acc4
commit cfd42818b7
5 changed files with 19 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
import { h, Component } from 'preact';
import * as style from './style.scss';
import { bind } from '../../lib/util';
import { bind, Fileish } from '../../lib/util';
import { cleanSet, cleanMerge } from '../../lib/clean-modify';
import OptiPNGEncoderOptions from '../../codecs/optipng/options';
import MozJpegEncoderOptions from '../../codecs/mozjpeg/options';
@@ -65,7 +65,7 @@ interface Props {
sourceAspect: number;
imageIndex: number;
sourceImageFile?: File;
imageFile?: File;
imageFile?: Fileish;
downloadUrl?: string;
encoderState: EncoderState;
preprocessorState: PreprocessorState;