[Pas2js] page reload when server restarted not 100% reliable
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Sep 22 17:11:06 CEST 2025
On 9/22/25 16:19, Luca Olivetti via Pas2js wrote:
> I have ~20 clients (windows 11 in kiosk mode with edge as the kiosk
> application). They're touch screen only, no keyboard or mouse.
> The pas2j application tries to reload the page when the connection is
> severed (it's using a TJSEventSource and the server sends a message
> every 5 seconds).q
> The problem is that, from time to time, the page is blank (I cannot
> simply hit F12 to see what's happening since it's in kiosk mode).
> On a non-kiosk instance I found that the pas2js application or another
> js library wasn't completely loaded while starting the application hence
> causing an exception, so I came up with this workaround (and, yes, first
> I tried just with the try..catch but it didn't work).
Wasnt completely loaded. Have you tried in the html:
window.addEventListener("load", rtl.run);
Mattias
More information about the Pas2js
mailing list