Fixed Object.assign
This commit is contained in:
parent
b32b5cbed7
commit
66c0fdfe12
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user