]> www.average.org Git - loctrkd.git/commitdiff
wsgateway: clear locations on wsocket open
authorEugene Crosser <crosser@average.org>
Fri, 12 Aug 2022 10:27:56 +0000 (12:27 +0200)
committerEugene Crosser <crosser@average.org>
Fri, 12 Aug 2022 10:27:56 +0000 (12:27 +0200)
They are repopulated anew, so better get rid of the old remanants.

webdemo/index.html

index a29c4df6ad5ca9b3761ce5cff9e11850c11a1bb2..8ef95011ec5792a5ff0ea389b90e92dfb34a595f 100644 (file)
                imei.disabled = false;
                send.disabled = false;
                clear.disabled = false;
+               locations.splice(0);
                sendIMEI();
        }
        function ws_onmessage(event) {