mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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.