* Remove browser.ts global reference * fallback text * formatting * Additional formatting * global > self > window > this * Add x-global package * Update tests * Correct jest mapping
@polkadot/x-fetch
A cross-environment fetch.
Install it via yarn add @polkadot/x-fetch
import { fetch } from '@polkadot/x-fetch';
...
const response = await fetch('https://example.com/something.json');
const json = await response.json();