summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian <stayawake@lavabit.com>2014-02-16 02:20:54 (GMT)
committerFlorian <stayawake@lavabit.com>2014-02-16 02:20:54 (GMT)
commitbe506d00471b655c30429d133053d594c48d71e3 (patch)
treed2b8b31d0e9d6ed86eebeb68dcb7b405a2b9e423
parentdd2f70706cbf73715ec87765ef740047f65360f4 (diff)
bugfix: form displayes not the latest file from localStorage
-rw-r--r--js/cctv-control.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/cctv-control.js b/js/cctv-control.js
index 4732b30..f4dc88a 100644
--- a/js/cctv-control.js
+++ b/js/cctv-control.js
@@ -117,7 +117,10 @@ function saveImage() {
};
fileReader.readAsDataURL(blob);
- showForm();
+
+ fileReader.onloadend = function() {
+ showForm();
+ }
}
}, false);