Export invitation_is_trusted for wasm_bindgen
This commit is contained in:
parent
ed7c94b912
commit
1702027cb9
|
@ -796,6 +796,7 @@ pub fn get_constants() -> Result<String, JsValue> {
|
|||
}
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn invitation_is_trusted(unspecified_invitation_str: String) -> Result<bool, JsValue> {
|
||||
match serde_json::from_str::<Invitation>(&unspecified_invitation_str) {
|
||||
Ok(_) => Ok(true),
|
||||
|
|
Loading…
Reference in New Issue