Modifying PWA.js code

This goes back to the question Start in Desktop Browser starts program twice - windows with chrome. I think there are several options, as originally I didn’t understand what was going on.

I think that having the software “restart” during a startup looks unprofessional. I can see several ways to avoid the situation I created with my prototype of the app: A splash screen comes up, then the main fires and does a changeform to the main menu form.

If the PWA sees that anything was updated on the server, it reloads those files and restarts the program. In my case, the main menu is already displayed and so the splash screen is redisplayed.

I could turn off the PWA, but I do want the user to have the latest software. What I’d like to do is have a way of knowing that the PWA has not started, is in process, has determined updates are necessary, is downloading updates (maybe even what file is being downloaded right now), and the PWA is completed. This would allow the main program to inform the user of what is happening, or at least not start the main menu while an update is in progress.