diff --git a/public/js/pages/Calendar/View.js b/public/js/pages/Calendar/View.js index 4924c0190..46e6847df 100644 --- a/public/js/pages/Calendar/View.js +++ b/public/js/pages/Calendar/View.js @@ -1114,7 +1114,7 @@ if (typeof (EventSource) !== 'undefined') { let jsondata; source.addEventListener('error', function (e) { let txt; - switch (Event.target.readyState) { + switch (e.target.readyState) { // if reconnecting case EventSource.CONNECTING: txt = 'Reconnecting...';