Files
Leenkx_Examples/call_hx/Sources/lnx/EvalJS.hx
2026-05-06 17:52:45 -07:00

12 lines
264 B
Haxe

package lnx;
class EvalJS {
public function new() {
// Evaluate bundled JS, usually you would embed JS into .html file instead
iron.data.Data.getBlob("my_plugin.js", function(blob:kha.Blob) {
js.Syntax.code("(1, eval)({0})", blob.toString());
});
}
}