Prevent refresh on back to group select

If train data is already known, don't refresh when going back to the group
selection screen.
This commit is contained in:
Kenneth Bruen 2022-09-20 00:34:49 +03:00
parent 35b19ffe80
commit 3ca35ce91d
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1

View file

@ -343,7 +343,12 @@ function rsk() {
window.addEventListener('popstate', function (e) {
groupIndex = null
refresh()
if (trainData) {
onTrainData(trainData)
}
else {
refresh()
}
})
window.addEventListener('load', function (e) {