equal
deleted
inserted
replaced
121 sock.send(JSON.stringify(new_annot)); |
121 sock.send(JSON.stringify(new_annot)); |
122 if(context.logging===true){ |
122 if(context.logging===true){ |
123 log('Sent: ' + JSON.stringify(new_annot)); |
123 log('Sent: ' + JSON.stringify(new_annot)); |
124 } |
124 } |
125 } else { |
125 } else { |
|
126 alert('La socket ne fonctionne pas.'); |
126 if(context.logging===true){ |
127 if(context.logging===true){ |
127 alert('La socket ne fonctionne pas.'); |
128 log('Not connected.'); |
128 if(context.logging===true){ |
|
129 log('Not connected.'); |
|
130 } |
|
131 } |
129 } |
132 } |
130 } |
133 }; |
131 }; |
134 |
132 |
135 // Interface management |
133 // Interface management |