diff --git a/static/js/viewer.js b/static/js/viewer.js index 6e73a22..a340da1 100644 --- a/static/js/viewer.js +++ b/static/js/viewer.js @@ -93,6 +93,7 @@ oml.ui.viewer = function() { height: '100%', border: 0 }).onMessage(function(data, event) { + console.log('got', event, data) if (event == 'addAnnotation') { saveAnnotations(data); var $annotation = oml.ui.annotation(data, $iframe).bindEvent(annotationEvents) @@ -114,7 +115,6 @@ oml.ui.viewer = function() { } else if (event == 'selectText') { oml.$ui.annotationPanel.updateSelection(data) } else { - console.log('got', event, data) that.triggerEvent(event, data); } }).bindEvent({