Lightbox.tsx: Fix formatting
This commit is contained in:
parent
526ab4fe29
commit
ab89c6c704
1 changed files with 5 additions and 3 deletions
|
@ -416,14 +416,16 @@ export class Lightbox extends React.Component<Props, State> {
|
|||
);
|
||||
};
|
||||
|
||||
private readonly onContextMenu = (event: React.MouseEvent<HTMLImageElement>) => {
|
||||
private readonly onContextMenu = (
|
||||
event: React.MouseEvent<HTMLImageElement>
|
||||
) => {
|
||||
const { contentType } = this.props;
|
||||
|
||||
// These are the only image types supported by Electron's NativeImage
|
||||
if (contentType !== "image/png" && contentType !== "image/jpg") {
|
||||
if (contentType !== 'image/png' && contentType !== 'image/jpg') {
|
||||
event?.preventDefault();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private readonly onClose = () => {
|
||||
const { close } = this.props;
|
||||
|
|
Loading…
Reference in a new issue