Skip to content

Commit

Permalink
better refresh page after detect & configure
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefal committed Jan 15, 2024
1 parent 3ffc6a2 commit e43b18b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web_app/static/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,12 @@ $(document).ready(function () {
detectApplyBtnElt.setAttribute('data-dismiss', 'modal');
detectApplyBtnElt.innerText = "Close";
if (response['result'] === 'success') {
detectBodyElt.innerHTML = "GNSS receiver successfully configured";
detectBodyElt.innerHTML = "GNSS receiver successfully configured. We will log out to refresh the settings";
detectApplyBtnElt.removeAttribute('data-dismiss');
detectApplyBtnElt.onclick = function() {
window.location.reload();
// window.location.reload();
// looks like this way works better :
location.href = document.URL.replace(/#$/, '');
}
} else {
detectBodyElt.innerHTML = "GNSS receiver configuration failed"
Expand Down

0 comments on commit e43b18b

Please sign in to comment.