diff options
| -rw-r--r-- | js/App.js | 2 | ||||
| -rw-r--r-- | js/CommonDialogs.js | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -332,7 +332,7 @@ const App = { const hotkeys_map = this.getInitParam("hotkeys"); for (const seq in hotkeys_map[1]) { - if (hotkeys_map[1].hasOwnProperty(seq)) { + if (Object.prototype.hasOwnProperty.call(hotkeys_map[1], seq)) { if (seq === sequence) { return hotkeys_map[1][seq]; } diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js index a9395d62e..9c6d1338b 100644 --- a/js/CommonDialogs.js +++ b/js/CommonDialogs.js @@ -184,7 +184,7 @@ const CommonDialogs = { select.addOption({value: '', label: __("Expand to select feed")}); for (const feedUrl in feeds) { - if (feeds.hasOwnProperty(feedUrl)) { + if (Object.prototype.hasOwnProperty.call(feeds, feedUrl)) { select.addOption({value: feedUrl, label: feeds[feedUrl]}); } } |