mirror of
https://github.com/discourse/discourse.git
synced 2025-04-02 23:30:30 +08:00

Relative URLs will work just fine for Web Workers, which were the original reason for introducing the `theme_uploads_local` feature Making them relative will mean that `loadScript()` automatically uses the CDN (when enabled), which is doubly important because our CSP doesn't allow loading theme-javascripts from the host domain when the CDN is enabled.