aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/web/src/diplomacy/client
diff options
context:
space:
mode:
Diffstat (limited to 'diplomacy/web/src/diplomacy/client')
-rw-r--r--diplomacy/web/src/diplomacy/client/connection.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/diplomacy/web/src/diplomacy/client/connection.js b/diplomacy/web/src/diplomacy/client/connection.js
index c1f8bfd..1e40ed8 100644
--- a/diplomacy/web/src/diplomacy/client/connection.js
+++ b/diplomacy/web/src/diplomacy/client/connection.js
@@ -262,7 +262,7 @@ export class Connection {
} catch (error) {
context.future.setException(error);
}
- } else if (jsonMessage.hasOwnProperty('notification_id') && jsonMessage.notification_id)
+ } else if (Object.prototype.hasOwnProperty.call(jsonMessage, 'notification_id') && jsonMessage.notification_id)
NOTIFICATION_MANAGERS.handleNotification(this, NOTIFICATIONS.parse(jsonMessage));
else
Diplog.error('Unknown socket message received.');