mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
delete localstorage after deleting file for uploader
This commit is contained in:
@@ -131,6 +131,7 @@ function returnBindedLI(a_element, name, link, li) {
|
|||||||
xhr.onreadystatechange = function() {
|
xhr.onreadystatechange = function() {
|
||||||
if (xhr.readyState === XMLHttpRequest.DONE) {
|
if (xhr.readyState === XMLHttpRequest.DONE) {
|
||||||
document.getElementById("uploaded_files").removeChild(li);
|
document.getElementById("uploaded_files").removeChild(li);
|
||||||
|
localStorage.removeItem(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xhr.status === 200) {
|
if (xhr.status === 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user