Function get_launch_params
Source pub fn get_launch_params() -> Result<LaunchParams, JsValue>
Expand description
Returns launch parameters parsed from the current window location.
The tg_web_app_platform
entry is read from the tgWebAppPlatform
query parameter and falls back to "web"
when it is absent.
§Errors
Returns a JsValue
if the global window object is unavailable.
§Examples
let _ = get_launch_params();