Sfoglia il codice sorgente

update to ping script

cecylia 8 anni fa
parent
commit
dbeedf49f7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      js/devicescripts.js

+ 1 - 1
js/devicescripts.js

@@ -17,7 +17,7 @@ var deviceScripts = {
 
     ping: {
 		onPacketReceived: function(device, packet) {
-                    if(packet.hashOwnProperty("proto")){
+                    if(packet.hasOwnProperty("proto")){
                         if(packet.transport.proto == "ICMP"){
                             var new_packet = {
                                 network: {