diff --git a/js/notifications.js b/js/notifications.js index 5b03cc677..669ea3282 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -131,9 +131,9 @@ this.reset([]); }, enable: function() { - var shouldUpdate = !isEnabled; + const needUpdate = !isEnabled; isEnabled = true; - if (shouldUpdate) { + if (needUpdate) { this.update(); } },