Use window.log in browser context, turn on console eslint rule
This commit is contained in:
@@ -32,6 +32,10 @@ export class MediaGridItem extends React.Component<Props, State> {
|
||||
}
|
||||
|
||||
public onImageError() {
|
||||
// tslint:disable-next-line no-console
|
||||
console.log(
|
||||
'MediaGridItem: Image failed to load; failing over to placeholder'
|
||||
);
|
||||
this.setState({
|
||||
imageBroken: true,
|
||||
});
|
||||
|
Reference in New Issue
Block a user