mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Lint fixes
This commit is contained in:
13
preload.js
13
preload.js
@@ -288,13 +288,12 @@ const contextMenu = require('electron-context-menu');
|
||||
|
||||
contextMenu({
|
||||
showInspectElement: false,
|
||||
shouldShowMenu: (event, params) => {
|
||||
if(!params.isEditable && params.mediaType === 'none' && ( params.linkURL.length !== 0 || params.selectionText.length !== 0 )) {
|
||||
return params.linkURL || params.selectionText;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
shouldShowMenu: (event, params) =>
|
||||
Boolean(
|
||||
!params.isEditable &&
|
||||
params.mediaType === 'none' &&
|
||||
(params.linkURL || params.selectionText)
|
||||
),
|
||||
});
|
||||
|
||||
// We pull this in last, because the native module involved appears to be sensitive to
|
||||
|
||||
Reference in New Issue
Block a user