diff --git a/txt.js/txt.js b/txt.js/txt.js index e63fdd9..3ce17c1 100644 --- a/txt.js/txt.js +++ b/txt.js/txt.js @@ -225,6 +225,9 @@ txtjs.onMessage = function(data, event) { txtjs.renderNote(note) txtjs.notes.push(note) }) + } else if (event == 'removeAnnotation') { + txtjs.selectNote(data.id) + txtjs.removeNote() } }