Skip to content

Function: decode()

ts
function decode(hash): ViewerStateV1;

Defined in: src/serialization/ViewerState.ts:153

Decode a URL hash fragment string back into a ViewerStateV1. Throws on invalid input, corrupted data, or unsupported version.

Parameters

hash

string

Returns

ViewerStateV1

Released under the MIT License.