From 163c020137c325577d59d46aa6afbdbded2184fc Mon Sep 17 00:00:00 2001 From: Jeff Heiges Date: Tue, 11 Mar 2025 09:55:13 +0000 Subject: Fixed all remaining hasOwnProperty errors --- diplomacy/web/src/gui/pages/content_connection.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diplomacy/web/src/gui/pages/content_connection.jsx') 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) { -- cgit v1.2.3