diff --git a/app/js/preload.js b/app/js/preload.js index 3d15f63..dc931f5 100644 --- a/app/js/preload.js +++ b/app/js/preload.js @@ -17,7 +17,7 @@ document.addEventListener('DOMContentLoaded', function(event) { setBadge(notificationIndicator.textContent); }, 200); - notificationIndicator.addEventListener('DOMCharacterDataModified', function(event) { + notificationIndicator.addEventListener('DOMCharacterDataModified', (event) => { setBadge(event.newValue); });