Merge branch 'dev' into web-codecs

This commit is contained in:
Jake Archibald
2021-05-24 16:06:09 +01:00
committed by GitHub
26 changed files with 2859 additions and 2365 deletions

View File

@@ -32,7 +32,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 { generateCliInvocation } from '../util/cli';
export type OutputType = EncoderType | 'identity';
@@ -70,7 +69,6 @@ interface State {
sides: [Side, Side];
/** Source image load */
loading: boolean;
error?: string;
mobileView: boolean;
preprocessorState: PreprocessorState;
encodedPreprocessorState?: PreprocessorState;
@@ -259,11 +257,6 @@ function processorStateEquivalent(a: ProcessorState, b: ProcessorState) {
return true;
}
// These are only used in the mobile view
const resultTitles = ['Top', 'Bottom'] as const;
// These are only used in the desktop view
const buttonPositions = ['download-left', 'download-right'] as const;
const originalDocumentTitle = document.title;
function updateDocumentTitle(filename: string = ''): void {