Fix eslint error
This commit is contained in:
parent
e535608328
commit
efa1171763
|
@ -6,7 +6,6 @@
|
|||
"no-console": 0,
|
||||
"no-eval": 1,
|
||||
"no-process-env": 0,
|
||||
"no-native-reassign": ["error", {"exceptions": ["Notification"]}],
|
||||
"no-underscore-dangle": 1,
|
||||
"react/jsx-boolean-value": [1, "always"],
|
||||
"react/jsx-indent": [2, 2],
|
||||
|
|
|
@ -6,7 +6,7 @@ const {remote} = require('electron');
|
|||
const appIconURL = `file:///${remote.app.getAppPath()}/resources/appicon.png`;
|
||||
|
||||
function override(eventHandlers) {
|
||||
Notification = function constructor(title, options) {
|
||||
Notification = function constructor(title, options) { // eslint-disable-line no-global-assign, no-native-reassign
|
||||
if (process.platform === 'win32') {
|
||||
// Replace with application icon.
|
||||
options.icon = appIconURL;
|
||||
|
|
Loading…
Reference in a new issue