I don't think I understand Rust web_sys. There is a variable on "window". It's n...
mcc @mcc@mastodon.social
I don't think I understand Rust web_sys.
There is a variable on "window". It's not part of the DOM standard. Before waking up Trunk, a bit of Javascript code said "window.blablarga = '1234';" and now I have web_sys::Window() and I want to access the field "blablarga". I check docs.rs and there's hundreds of functions and CTRL-F doesn't obviously find what I want.
The docs imply the solution is to bindgen it, but the bindgen examples are all functions. This is a field, expected a string.