cunarist / rinf

Rust for native business logic, Flutter for flexible and beautiful GUI
MIT License
2.03k stars 72 forks source link

log an error if the binding is not ready #463

Closed poborin closed 1 month ago

poborin commented 1 month ago

Changes

catch a JS error if the binding is not ready. Fixes #460

temeddix commented 1 month ago

Thanks for your contribution :)

May I ask you if this fixes #460, or it just kindly prints an error if binding is not ready? It looks like code just handles error gracefully to me.


After some debugging, now I see what this PR does. When there is no global rinf JS object, your code might be able to ignore the absense and proceed, even in web workers. Thanks a lot.

temeddix commented 1 month ago

I'll publish a new version within a day. Thank you very much