]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commit
Catch all exceptions in JS function updateUI
authorMichal <michal.sojka@cvut.cz>
Wed, 15 Aug 2018 10:14:06 +0000 (12:14 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 16 Aug 2018 17:11:26 +0000 (19:11 +0200)
commitae0342ebd464093f82e509aece2d4b1f481b3553
tree22a48636d6c7acf37761cf5a69f3433dea324e5f
parent534f40f00c24fa2f629689a2436edcf7bbbc8e10
Catch all exceptions in JS function updateUI

It fails when offline data is processed. It is important that offline
data are processed entirely and only once. If the code crashes in the
middle, due to an exception, the same offline queue will be replayed
next time, causing some coffees to be accounted multiple times and
some maybe never accounted.
templates/main.js