diff options
author | Florian <stayawake@lavabit.com> | 2014-02-16 03:20:54 +0100 |
---|---|---|
committer | Florian <stayawake@lavabit.com> | 2014-02-16 03:20:54 +0100 |
commit | be506d00471b655c30429d133053d594c48d71e3 (patch) | |
tree | d2b8b31d0e9d6ed86eebeb68dcb7b405a2b9e423 /js | |
parent | dd2f70706cbf73715ec87765ef740047f65360f4 (diff) |
bugfix: form displayes not the latest file from localStorage
Diffstat (limited to 'js')
-rw-r--r-- | js/cctv-control.js | 5 |
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); |