mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 07:59:59 -07:00
Add delete all recordings button to web ui
This commit is contained in:
committed by
Will Greenberg
parent
326d4106bd
commit
c47be1074b
@@ -215,6 +215,13 @@ async function stopRecording() {
|
||||
populateDivs();
|
||||
}
|
||||
|
||||
async function deleteAllRecodings() {
|
||||
if (window.confirm("Are you sure you want to permanently delete all of your recordings?")) {
|
||||
await req('POST', '/api/delete-all-recordings');
|
||||
populateDivs();
|
||||
}
|
||||
}
|
||||
|
||||
async function req(method, url) {
|
||||
const response = await fetch(url, {
|
||||
method: method,
|
||||
|
||||
Reference in New Issue
Block a user