This commit is contained in:
rlx 2019-01-24 13:37:06 +05:30
parent 8534eb9b69
commit f855172c42

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