This commit is contained in:
rlx 2019-01-24 13:37:06 +05:30
parent 8534eb9b69
commit f855172c42
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
let txtjs = {}
Ox.load({UI: {loadCSS: false}}, function() {
// ...
})
txtjs.open = function(url) {
fetch(url).then(function(response) {
return response.text()
@ -211,7 +215,8 @@ txtjs.onMessage = function(action, data) {
txtjs.postMessage = function(action, data) {
console.log('postMessage', action, data)
parent.postMessage(JSON.stringify({action: action, data: data}), '*')
//parent.postMessage(JSON.stringify({action: action, data: data}), '*')
Ox.$parent.postMessage(action.replace('Note', 'Annotation'), data)
}
txtjs.removeNote = function() {