mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 03:26:25 +08:00

The logic in 06893380 only works for `.js` files. It breaks down for `.br.js` and `.gz.js` files. This commit makes things more robust by extracting only the base_url from the service-worker JS, and taking the map filename from the original `sourceMappingURL` comment.