Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

fix: confirm delete used disk space

Christian Fei6e4545180d74
diff --git a/client/lib/router.js b/client/lib/router.js
index 6aa083b..0b2ae68 100644
--- a/client/lib/router.js
+++ b/client/lib/router.js
@@ -86,7 +86,7 @@ const routes = {
})
$reclaimDiskSpace.addEventListener('click', (event) => {
event.preventDefault()
- if (!confirm('About to delete downloaded videos, are you sure?'))
+ if (!confirm('About to delete downloaded videos, are you sure?')) return
console.log('reclaiming')
window.fetch('/api/reclaim-disk-space', {
method: 'POST'