SOLVED: Support Window.postMessage()

Does Lime support any way of calling Window.postMessage() if exporting to html (I only need html builds)? If not, is there a workaround?

EDIT: Regular old Haxe actually supports this: https://api.haxe.org/v/development/js/html/Window.html#postMessage. Will it still work with lime html?

Yes. If you are exporting to other targets, be sure to wrap the JS-only code so that it is skipped when not needed.

#if html5
// JS-only code
#end

Thanks! I haven’t used lime before, and I wasn’t sure if Lime worked with Haxe js stuff.