mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 09:17:20 +00:00
Write out logging command
This commit is contained in:
@@ -155,7 +155,9 @@ export default class App extends Component<Props, State> {
|
||||
// changed.
|
||||
if (source !== prevState.source || image.encoderState !== prevImage.encoderState) {
|
||||
if (prevImage.downloadUrl) URL.revokeObjectURL(prevImage.downloadUrl);
|
||||
this.updateImage(i).catch(console.error);
|
||||
this.updateImage(i).catch((err) => {
|
||||
console.error(err);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user