Fix eslint error
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
"no-console": 0,
|
"no-console": 0,
|
||||||
"no-eval": 1,
|
"no-eval": 1,
|
||||||
"no-process-env": 0,
|
"no-process-env": 0,
|
||||||
"no-native-reassign": ["error", {"exceptions": ["Notification"]}],
|
|
||||||
"no-underscore-dangle": 1,
|
"no-underscore-dangle": 1,
|
||||||
"react/jsx-boolean-value": [1, "always"],
|
"react/jsx-boolean-value": [1, "always"],
|
||||||
"react/jsx-indent": [2, 2],
|
"react/jsx-indent": [2, 2],
|
||||||
|
@@ -6,7 +6,7 @@ const {remote} = require('electron');
|
|||||||
const appIconURL = `file:///${remote.app.getAppPath()}/resources/appicon.png`;
|
const appIconURL = `file:///${remote.app.getAppPath()}/resources/appicon.png`;
|
||||||
|
|
||||||
function override(eventHandlers) {
|
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') {
|
if (process.platform === 'win32') {
|
||||||
// Replace with application icon.
|
// Replace with application icon.
|
||||||
options.icon = appIconURL;
|
options.icon = appIconURL;
|
||||||
|
Reference in New Issue
Block a user