Browse Source

Remove unneccessary calls for notifications.

master
Stanislav N. aka pztrn 2 years ago
committed by Jeff
parent
commit
287e296e00
  1. 20
      src/components/player/Player.tsx
  2. 40
      src/main.prod.js.LICENSE.txt

20
src/components/player/Player.tsx

@ -522,16 +522,6 @@ const Player = ({ currentEntryList, muted, children }: any, ref: any) => {
];
ipcRenderer.send('current-song', nextSong);
if (config.player.systemNotifications) {
// eslint-disable-next-line no-new
new Notification(nextSong.title, {
body: `${nextSong.artist.map((artist: Artist) => artist.title).join(', ')}\n${
nextSong.album
}`,
icon: nextSong.image,
});
}
dispatch(setAutoIncremented(false));
}
}
@ -586,16 +576,6 @@ const Player = ({ currentEntryList, muted, children }: any, ref: any) => {
];
ipcRenderer.send('current-song', nextSong);
if (config.player.systemNotifications) {
// eslint-disable-next-line no-new
new Notification(nextSong.title, {
body: `${nextSong.artist.map((artist: Artist) => artist.title).join(', ')}\n${
nextSong.album
}`,
icon: nextSong.image,
});
}
dispatch(setAutoIncremented(false));
}
}

40
src/main.prod.js.LICENSE.txt

@ -1 +1,41 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*/
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
//! moment.js
//! moment.js locale configuration

Loading…
Cancel
Save