Skip to main content

decode_props

Function decode_props 

Source
pub fn decode_props(raw: &str) -> Option<Map<String, Value>>
Expand description

Decode the data-devup-props marker back into a props map.

Accepts both the modern base64 payload (standard alphabet) and, as a fallback, a raw JSON object string — the TS side emits the latter when window.btoa is unavailable (Node fallback path). Returns None when the attribute is absent or unparseable.