Commit cc27c4df authored by Robert Knight's avatar Robert Knight

Add a note about a possible refactoring to simplify this code in future

parent fc314751
......@@ -59,6 +59,10 @@ export class HypothesisInjector {
//
// These settings are set only in the browser extension and not by the
// embedded client (served by h).
//
// We could potentially do this by allowing these settings to be part of
// the "annotator" config (see `annotator/config/index.js`) which gets passed
// to the constructor.
const { assetRoot, notebookAppUrl, sidebarAppUrl } =
parseJsonConfig(document);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment