• Kyle Keating's avatar
    Refactor fetch-config.js and allow requestConfigFromFrame to be an object · 75b15ef3
    Kyle Keating authored
    - Rename fetchConfig to fetchConfigLegacy
    - Allow the requestConfigFromFrame variable from hypothesisConfig to be either a string containing the origin url (legacy),
    or an object containing the origin url + the ancestor level value of the parent frame. This is used to directly find the
    frame which to send RPC requests too so we don't have to guess and create erroneous console errors.
    - Rename fetchConfig to fetchConfigLegacy (now deprecated)
    - Add fetchConfigRpc to replace fetchConfigLegacy
    - Add fetchConfigEmbed for the simple hash fragment case
    - Refactor fetchConfig to decide how it will fetch the host config (one of 3-ways)
     1. simple case from url hash fragment
     2. legacy RPC call from (depreciated)
     3. RPC call directly to parent frame.
    75b15ef3
Name
Last commit
Last update
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...