EventListener no longer works

Since it appears you were trying to “capture” the “reload” event, may I suggest you read this post:: Modifying PWA.js code - #10 by GaryGorsline, but read the entire post from the beginning,

One other note: PWA with Start in Desktop Browser - doesn’t really work. See this post:
8.0.0.3 Start in Desktop Browser PWA issue Also, that event, depending on the connection speed can be as much as 30 seconds after app startup. 5 seconds on LTE is not unusual.

And as @ghenne will tell you: PWA is new and is not really a fully accepted standard. Apple doesn’t even say it’s supported.