better-web-view 0.6.0

The library is a web-view modification and provides a better way of communication between the Rust backend and the JavaScript frontend.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
backend.invoke("say_hello", ["test"])
    .catch(err => {
        console.log(err); // Invalid argument
    })

backend.invoke("say_hello", "Maxim")
    .then(res => {
        alert(res); // Hello Maxim!
    })
    .catch(err => {
        console.log(err);
    })