From 66c0fdfe12b946ea6012d86b7fc43077488371ed Mon Sep 17 00:00:00 2001 From: Ruakij Date: Wed, 24 Nov 2021 23:13:04 +0100 Subject: [PATCH] Fixed Object.assign --- src/streamHandler/PacketStreamFactory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamHandler/PacketStreamFactory.js b/src/streamHandler/PacketStreamFactory.js index 08706ec..d1953db 100644 --- a/src/streamHandler/PacketStreamFactory.js +++ b/src/streamHandler/PacketStreamFactory.js @@ -101,7 +101,7 @@ class PacketStreamFactory extends Transform{ newPacket.disassociationReason = data.match(/(?<=(^|\s)Disassociation:\s).*?(?=\sBSS|$)/img)?.[0] ?? null; break; } - if(newPacket) packet = Object.assign(new newPacket, packet); // Use new, more specific, packet and copy old data over + if(newPacket) packet = Object.assign(newPacket, packet); // Use new, more specific, packet and copy old data over } _handlePayload(packet, data){