mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
56c98f7c23
Not every application is served from the domain root. The Service Worker made a bad assumption that it would be, and so requested /ngsw.json from the domain root. This change corrects this assumption, and requests ngsw.json without the leading slash. This causes the request to be interpreted relative to the SW origin, which will be the application root.