mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +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