MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / post

Function post

scripts/cn1playground/src/html/playground-editor/editor.js:31–40  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

29 ];
30
31 function post(payload) {
32 var message = JSON.stringify(payload);
33 if (window.cn1PostMessage) {
34 window.cn1PostMessage(message);
35 return;
36 }
37 if (window.parent && window.parent !== window && window.parent.postMessage) {
38 window.parent.postMessage(message, '*');
39 }
40 }
41
42 function ensureMonaco(callback) {
43 if (state.monacoReady) {

Callers 3

ensureMonacoFunction · 0.85
signalReadyFunction · 0.85

Calls 2

stringifyMethod · 0.45
postMessageMethod · 0.45

Tested by

no test coverage detected