mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 09:21:40 +08:00

In development, we track the last requested theme id, and use that to refresh the correct stylesheet targets. The after_action hook runs on every request, but the preview_theme_id parameter is only sent on the initial HTML request. This commit ensures we only fetch the development theme_id on HTML requests