Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Minor tweaks
Jake Archibald3a0db14c404e
diff --git a/src/components/App/index.tsx b/src/components/App/index.tsxindex c1c75c41..c8034c2a 100644--- a/src/components/App/index.tsx+++ b/src/components/App/index.tsx@@ -159,7 +159,7 @@ export default class App extends Component<Props, State> {// options should always be correct for the type, but TypeScript isn't smart enough.const encoderState: EncoderState = {type,- options: options ? options : encoderMap[type].defaultOptions,+ options: options || encoderMap[type].defaultOptions,} as EncoderState;images[index] = {diff --git a/src/components/Options/index.tsx b/src/components/Options/index.tsxindex 97bcbe10..ae75e2b9 100644--- a/src/components/Options/index.tsx+++ b/src/components/Options/index.tsx@@ -125,14 +125,12 @@ export default class Options extends Component<Props, State> {/>Enable</label>- {preprocessorState.quantizer.enabled ? (+ {preprocessorState.quantizer.enabled &&<QuantizerOptionsComponentoptions={preprocessorState.quantizer}onChange={this.onQuantizerOptionsChange}/>- ) : (- <div/>- )}+ }<hr/><label>Mode: