Add shared module for config fragment generation and parsing
The logic for generating the `#config=<URI-encoded JSON blob>` fragment, that is used to pass configuration from the annotator to the sidebar application, was duplicated in several places in the code. Add a shared module in `shared/config-fragment.js` with functions for adding configuration to and extracting it from the URL.
Showing
Please register or sign in to comment