I always want the user to download the game from the server updated. I set the IIS to do so. The problem I saw is when there is a subdomain in the url, the updater doesn't work correctly. The error prompted was: Update check failed: Error: not all resources were fetched successfully.
And the URL where is trying to download the resources is not correct.
Imagine that the url where is the game is : xxx.whatever.com/subdomain
The error says that couldn't fetch from the url xxx.whatever.com
The subdomain doesn't appears. I had to edit manually the sw.js so that it appears.
Is there any way to fix this? Am I doing something wrong?
It's hard to edit the sw.js everytime I make an update.
Thank you sooo much.