mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Lint fixes
This commit is contained in:
parent
851c1a0e47
commit
5a50786e7a
2 changed files with 22 additions and 7 deletions
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
|
||||
|
|
|
@ -2878,6 +2878,22 @@
|
|||
"reasonCategory": "falseMatch",
|
||||
"updated": "2018-09-19T18:13:29.628Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-prepend(",
|
||||
"path": "node_modules/electron-context-menu/index.js",
|
||||
"line": "\t\t\tconst result = options.prepend(props, win);",
|
||||
"lineNumber": 122,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-04-10T19:08:25.356Z"
|
||||
},
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "node_modules/electron-context-menu/index.js",
|
||||
"line": "\t\t\tconst result = options.append(props, win);",
|
||||
"lineNumber": 130,
|
||||
"reasonCategory": "falseMatch",
|
||||
"updated": "2019-04-10T19:08:25.356Z"
|
||||
},
|
||||
{
|
||||
"rule": "eval",
|
||||
"path": "node_modules/electron/electron.d.ts",
|
||||
|
|
Loading…
Reference in a new issue