Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
1234567891011121314151617181920212223242526document.addEventListener('click', (event) => { if (!event.target.matches('.run-delete-button')) { return }
const runId = event.target.dataset['runId']
fetch(`/api/v3/runs/${runId}`, { method: 'DELETE' }).then((response) => { if (response.ok) { return response }
throw response }).then((response) => { $(`#run_${runId}`).fadeOut(300, () => { $(this).remove() }) }).catch((error) => { error.text().then((errorText) => { console.log(`Run deletion failed with response: ${errorText}`) }) })})