more logging

This commit is contained in:
j 2019-02-09 17:13:24 +05:30
parent 497c2bb6be
commit ad2d763fbb
1 changed files with 1 additions and 1 deletions

View File

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