aboutsummaryrefslogtreecommitdiffstats
path: root/sockets.js
diff options
context:
space:
mode:
export function scroll(section) {
	section.scrollIntoView({ behavior: 'smooth' });
}

export const post = (url, body) =>
	fetch(url, {
		method: 'POST',
		body: JSON.stringify(body),
		headers: { 'accept': 'application/json', 'content-type': 'application/json' }
	});
authorAdam Soltys <[email protected]>2019-06-11 15:57:43 -0700
committer