aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/web/src/gui/pages
diff options
context:
space:
mode:
authorJeff Heiges <jehe8729@colorado.edu>2025-03-11 09:55:13 +0000
committerJeff Heiges <jehe8729@colorado.edu>2025-03-11 09:55:13 +0000
commit163c020137c325577d59d46aa6afbdbded2184fc (patch)
treec15a64b4f9f5966a2fab5a733aff2e1baa5fdc4a /diplomacy/web/src/gui/pages
parent17d0f0ed7fee829d30e44f3d7a4f20e364a2f076 (diff)
Fixed all remaining hasOwnProperty errors
Diffstat (limited to 'diplomacy/web/src/gui/pages')
-rw-r--r--diplomacy/web/src/gui/pages/content_connection.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/diplomacy/web/src/gui/pages/content_connection.jsx b/diplomacy/web/src/gui/pages/content_connection.jsx
index a7a151f..aea7f39 100644
--- a/diplomacy/web/src/gui/pages/content_connection.jsx
+++ b/diplomacy/web/src/gui/pages/content_connection.jsx
@@ -32,7 +32,7 @@ export class ContentConnection extends React.Component {
onSubmit(data) {
const page = this.context;
for (let fieldName of ['hostname', 'port', 'username', 'password', 'showServerFields'])
- if (!data.hasOwnProperty(fieldName))
+ if (!Object.prototype.hasOwnProperty.call(data, fieldName))
return page.error(`Missing ${fieldName}, got ${JSON.stringify(data)}`);
page.info('Connecting ...');
if (this.connection) {