From efa117176397b12d8528c7df332101a7adf257fb Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Mon, 7 Nov 2016 23:13:19 +0900 Subject: [PATCH] Fix eslint error --- .eslintrc.json | 1 - src/browser/js/notification.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 6fecbe88..283fa26b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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], diff --git a/src/browser/js/notification.js b/src/browser/js/notification.js index 0c4c0dde..ca8a3730 100644 --- a/src/browser/js/notification.js +++ b/src/browser/js/notification.js @@ -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;