mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-17 03:00:13 +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.
|
||||
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.
|
||||
this.leftProcessor.abortCurrent();
|
||||
this.rightProcessor.abortCurrent();
|
||||
@@ -526,7 +526,7 @@ export default class Compress extends Component<Props, State> {
|
||||
}
|
||||
|
||||
@bind
|
||||
private signalProcessingStart() {
|
||||
private signalLoadingStart() {
|
||||
document.dispatchEvent(
|
||||
new SquooshStartEvent(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user