editor › Globals › HashReader
Class: HashReader
Reads out the window.location.hash and splits up individual values.
Expects the format #key1=value…#key2=value2…
Hierarchy
- HashReader
Index
Methods
Methods
Static Private _parseHashString
▸ _parseHashString(hash: string): Record‹string, string›
Defined in src/util/config/HashReader.ts:23
Parses the string into an object
Parameters:
| Name | Type |
|---|---|
hash |
string |
Returns: Record‹string, string›
the parsed configObject { key: stringValue, ... }
Static readCurrentHash
▸ readCurrentHash(): Record‹string, string›
Defined in src/util/config/HashReader.ts:11
Returns: Record‹string, string›
the individual hash parts as an parsed object { key: stringValue, ... }