From 4d059138195a3cd322769314e1e032c4b9c38eef Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 11 Apr 2021 13:52:18 +0200 Subject: [PATCH] Rename variable --- assets/js/components/notifications/service.js | 2 +- assets/js/components/notifications/song.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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