Use window.log in browser context, turn on console eslint rule
This commit is contained in:
parent
4320b125dd
commit
5933a34a18
71 changed files with 816 additions and 559 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue