package livereload

// const JsSnippet = `<script>
// 	const source = new EventSource('/livereload');
// 	source.onmessage = (e) => {
// 		if (e.data === 'reload') {
// 			location.reload(true);
// 		} else {
// 			console.error(e.data);
// 		}
// 	};
// 	source.onerror = () => {
// 		source.onopen = () => location.reload(true);
// 	};
// 	console.info('esr: livereload enabled');
// </script>
// `
const JsSnippet = `<script>const source = new EventSource('/livereload'); source.onmessage = (e) => { if (e.data === 'reload') location.reload(); }; console.info('esr :: listening');</script>`
