import fetch from 'unfetch';
export default function () {
    function dispatch(url, body) {
        return fetch(url, {
            keepalive: true,
            headers: { 'Content-Type': 'text/plain' },
            method: 'post',
            body: JSON.stringify(body),
        });
    }
    return {
        dispatch: dispatch,
    };
}
//# sourceMappingURL=fetch-dispatcher.js.map