more logging

This commit is contained in:
j 2019-02-09 17:13:24 +05:30
parent 497c2bb6be
commit ad2d763fbb

View file

@ -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({