diff options
Diffstat (limited to 'interface/js/app')
-rw-r--r-- | interface/js/app/history.js | 1 | ||||
-rw-r--r-- | interface/js/app/rspamd.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 1aab72456..0cd5675c0 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -61,6 +61,7 @@ define(["jquery", "footable", "humanize"], function preprocess_item(item) { for (var prop in item) { + if (!{}.hasOwnProperty.call(item, prop)) continue; switch (prop) { case "rcpt_mime": case "rcpt_smtp": diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 1d41bd85b..fde541285 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -54,6 +54,7 @@ function ($, D3pie, visibility, NProgress, tab_stat, tab_graph, tab_config, function stopTimers() { for (var key in timer_id) { + if (!{}.hasOwnProperty.call(timer_id, key)) continue; Visibility.stop(timer_id[key]); } } |