Skip to content

Commit

Permalink
drop node-notifier, navtive Notifaction API is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
Darmody committed Mar 20, 2016
1 parent 10a7093 commit 6a83cdb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 91 deletions.
11 changes: 4 additions & 7 deletions app/containers/HomePage/Content/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { bindActionCreators } from 'redux';
import cx from 'classnames';
import { connect } from 'react-redux';
import ipc from 'ipc';
import notifier from 'node-notifier';
import { Player } from 'components';
import { fetch, like, dislike, ban } from 'reducers/song';
import styles from './Content.scss';
Expand Down Expand Up @@ -45,12 +44,10 @@ export default class Content extends Component {
notice = (song) => {
if (document.hasFocus()) return;

notifier.notify({
title: song.name,
message: song.artist,
contentImage: song.cover,
sender: 'com.electron.doubanfmac',
sound: 'Pop',
/* eslint no-unused-vars: 0 */
const notification = new Notification(song.name, {
body: song.artist,
icon: song.cover,
});
}

Expand Down
83 changes: 0 additions & 83 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
"menubar": "^4.0.2",
"moment": "^2.12.0",
"nock": "^7.2.2",
"node-notifier": "^4.5.0",
"normalize.css": "^3.0.3",
"react": "^0.14.2",
"react-addons-clicked-away-mixin": "^0.1.2",
Expand Down

0 comments on commit 6a83cdb

Please sign in to comment.