pub fn vec_to_js_value(vec: Vec<u8>) -> Result<JsValue, Error>
Expand description

A function for tauriless-js to serialize a Vec<u8> into a wasm_bindgen::JsValue.

This function exists to allow the tauriless-js WASM module to efficiently receive the result of the command-function from the custom protocol handler in wry and make it available to the user of the tauriless-js WASM module.