Open Jan-PieterBaert opened 4 years ago
Is quite annoying when you have no internet tho.
if hasInternet():
reloadpage()
else:
alert("People might have ordered, please refresh the page")
i propose:
let result = doLastUpdateBeforeClosing();
if result == Error {
alert("people might have ..."
} else {
displayOrders();
}
checking connectivity is non trivial, and requires sending a request any way.
edit: this is also non trivial cause of server side templates
This will make sure the courier doesn't have an outdated list of order and forgets something