-
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