diff --git a/assets/js/components/notifications/service.js b/assets/js/components/notifications/service.js index f5daba48..ee78f045 100644 --- a/assets/js/components/notifications/service.js +++ b/assets/js/components/notifications/service.js @@ -55,7 +55,7 @@ ComunicWeb.components.notifications.service = { //Play song if required if(this.last_total_count != -1 && total_number_notifs > this.last_total_count) - ComunicWeb.components.notifications.song.play(); + NotificationsSong.play(); this.last_total_count = total_number_notifs; diff --git a/assets/js/components/notifications/song.js b/assets/js/components/notifications/song.js index 2a8f1c7e..125bc001 100644 --- a/assets/js/components/notifications/song.js +++ b/assets/js/components/notifications/song.js @@ -4,7 +4,7 @@ * @author Pierre HUBERT */ -ComunicWeb.components.notifications.song = { +const NotificationsSong = { /** * Song element : null by default