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({
|
contextMenu({
|
||||||
showInspectElement: false,
|
showInspectElement: false,
|
||||||
shouldShowMenu: (event, params) => {
|
shouldShowMenu: (event, params) =>
|
||||||
if(!params.isEditable && params.mediaType === 'none' && ( params.linkURL.length !== 0 || params.selectionText.length !== 0 )) {
|
Boolean(
|
||||||
return params.linkURL || params.selectionText;
|
!params.isEditable &&
|
||||||
}
|
params.mediaType === 'none' &&
|
||||||
|
(params.linkURL || params.selectionText)
|
||||||
return false;
|
),
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// We pull this in last, because the native module involved appears to be sensitive to
|
// We pull this in last, because the native module involved appears to be sensitive to
|
||||||
|
|
|
@ -2878,6 +2878,22 @@
|
||||||
"reasonCategory": "falseMatch",
|
"reasonCategory": "falseMatch",
|
||||||
"updated": "2018-09-19T18:13:29.628Z"
|
"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",
|
"rule": "eval",
|
||||||
"path": "node_modules/electron/electron.d.ts",
|
"path": "node_modules/electron/electron.d.ts",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue