• 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
.github Loading commit data...
bin Loading commit data...
docs Loading commit data...
embedding-examples Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.dockerignore Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.prettierignore Loading commit data...
.prettierrc Loading commit data...
.python-version Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Dockerfile Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
tox.ini Loading commit data...
yarn.lock Loading commit data...