Boscop
Boscop
I'm reopening this because we don't have a ticket for this yet.. It's probably possible but I'm not sure how. @vanderlokken: Would it be possible the same way as in...
I think you can just set `debug` to `false` or do `console.log = function() {};` See also my issue here: https://github.com/zserge/webview/issues/75 The best way seems to be to use RPC...
@mbuscemi In your frontend (in your `App::create` method), you can register an event handler on `document` for a custom event that sends a Msg to your app. Then from the...
You can do it with this: https://docs.rs/stdweb/0.4.20/stdweb/web/fn.document.html https://docs.rs/stdweb/0.4.20/stdweb/web/trait.IEventTarget.html#method.add_event_listener
Nice! Btw: - In general you probably want to serialize your string as json here: https://github.com/mbuscemi/hedgehog/blob/d6bd3b14ff9a058593954c71d6dfd4a9b4f1e2da/src/rpc.rs#L6 It could contain quotes etc. - I'm pretty sure this will not work: https://github.com/mbuscemi/hedgehog/blob/d6bd3b14ff9a058593954c71d6dfd4a9b4f1e2da/frontend/src/lib.rs#L59...
> I'm curious, as I had assumed that all js! blocks would be contained within the same JS scope, so a var in one would be accessible to all the...
@mbuscemi Yeah it makes sense to factor the event stuff out.. But if I'm not completely mistaken: Each time you bring a rust closure into a `js!{}` scope it will...
> So, I'm pretty sure I was dropping the callback already. I saved it out a field on my event, which got saved to my Yew model, which I then...
You mean the icon that appears in the title bar and task bar? Doesn't it use the exe icon for that?
(Sorry for my long absence, I was very busy..) Yes, let's turn this into an org project. What makes more sense, creating a `web-view` org for this, or transferring ownership...