Skip to content

Commit 23d5337

Browse files
committed
Add identity.getProfileUserInfo method
1 parent 8603f69 commit 23d5337

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/identity.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,11 @@ extern "C" {
3939
details: &JsValue,
4040
callback: &Function,
4141
) -> Result<(), JsValue>;
42+
43+
// https://developer.chrome.com/docs/extensions/reference/identity/#method-getProfileUserInfo
44+
#[wasm_bindgen(method, catch, js_name = getProfileUserInfo)]
45+
pub async fn get_profile_user_info(
46+
this: &Identity,
47+
details: &JsValue,
48+
) -> Result<JsValue, JsValue>;
4249
}

0 commit comments

Comments
 (0)