mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 19:01:41 +00:00
prettier
This commit is contained in:
parent
39f59e5189
commit
dc41ccc377
3 changed files with 11 additions and 45 deletions
|
|
@ -189,11 +189,8 @@ class NotificationManager {
|
|||
fireNotificationFromSocket(eventName, eventData) {
|
||||
if (!Database.notificationSettings.isUseable) return
|
||||
|
||||
const eventNameModified = eventName.replace(/_([a-z])/g, (_, c) => c.toUpperCase());
|
||||
const eventKey = `on${eventNameModified.charAt(0).toUpperCase()}${eventNameModified.slice(1)}`;
|
||||
|
||||
console.log(eventData)
|
||||
console.log(Object.keys(eventData))
|
||||
const eventNameModified = eventName.replace(/_([a-z])/g, (_, c) => c.toUpperCase())
|
||||
const eventKey = `on${eventNameModified.charAt(0).toUpperCase()}${eventNameModified.slice(1)}`
|
||||
|
||||
if (!Database.notificationSettings.getHasActiveNotificationsForEvent(eventKey)) {
|
||||
// No logging to prevent console spam
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue