mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FIX: Allow file-change
events soon after reloading (#13065)
This patch remembers the last id for the `file-change` event and uses it to initialize the client side watcher. This should help fix the issue where styles are not reloaded client side if the browser refreshed.
This commit is contained in:
@ -539,6 +539,7 @@ module ApplicationHelper
|
||||
if ENV['DEBUG_PRELOADED_APP_DATA']
|
||||
setup_data[:debug_preloaded_app_data] = true
|
||||
end
|
||||
setup_data[:mb_last_file_change_id] = MessageBus.last_id('/file-change')
|
||||
end
|
||||
|
||||
if guardian.can_enable_safe_mode? && params["safe_mode"]
|
||||
|
Reference in New Issue
Block a user