mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-17 11:09:41 +00:00
Rename loading event
This commit is contained in:
@@ -440,7 +440,7 @@ export default class Compress extends Component<Props, State> {
|
|||||||
// Either processor is good enough here.
|
// Either processor is good enough here.
|
||||||
const processor = this.leftProcessor;
|
const processor = this.leftProcessor;
|
||||||
|
|
||||||
this.setState({ loadingCounter, loading: true }, this.signalProcessingStart);
|
this.setState({ loadingCounter, loading: true }, this.signalLoadingStart);
|
||||||
// Abort any current encode jobs, as they're redundant now.
|
// Abort any current encode jobs, as they're redundant now.
|
||||||
this.leftProcessor.abortCurrent();
|
this.leftProcessor.abortCurrent();
|
||||||
this.rightProcessor.abortCurrent();
|
this.rightProcessor.abortCurrent();
|
||||||
@@ -526,7 +526,7 @@ export default class Compress extends Component<Props, State> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
private signalProcessingStart() {
|
private signalLoadingStart() {
|
||||||
document.dispatchEvent(
|
document.dispatchEvent(
|
||||||
new SquooshStartEvent(),
|
new SquooshStartEvent(),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user