const el = (tag, ...children) => {
const e = document.createElement(tag);
children.forEach(child => {
if (typeof child === 'string') {
const t = document.createTextNode(child);
e.appendChild(t);
} else {
e.appendChild(child);
}
});
return e;
};
const openRetry = () => {
const e = document.createElement('aside');
e.innerHTML =
' Login failed ';
e.classList.add('_alert');
e.onclick = () => {
window.location.href = 'http://localhost:1234/#edit';
location.reload();
};
document.body.prepend(e);
};
export default openRetry;