I experienced a strange thing while tried inspecting the source code: regardless of what file I opened, I always got back the contents of the index.html. See the screenshot here:
http://deejayy.hu/share/paste-20240611-214248.pngAfter refreshing, it properly displayed the JS code for the SW.