• Robert Knight's avatar
    Add module for fetching config from ancestor frames · b2df9cd7
    Robert Knight authored
    Implement `fetchConfig` function which fetches config from the host page
    / embedding web app and merges it with config rendered into the sidebar
    HTML page.
    
    This function supports a new method of fetching config from the embedder
    by performing a "requestSidebarConfig" RPC call to the origin set with
    the "requestSidebarConfigFromFrameWithOrigin" setting. That setting must
    itself by set in the page where the embed.js script is loaded.
    
    Also extract the `assertPromiseIsRejected` helper into `promise-util.js`
    for re-use and add a note about needing to return the result.
    b2df9cd7
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT 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...
yarn.lock Loading commit data...