mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: maintain preview theme, while previewing
This means you can browse around in preview mode without losing the theme. At any point you can refresh page and maintain the preview theme.
This commit is contained in:
@ -315,7 +315,7 @@ class ApplicationController < ActionController::Base
|
||||
resolve_safe_mode
|
||||
return if request.env[NO_CUSTOM]
|
||||
|
||||
theme_key = flash[:preview_theme_key]
|
||||
theme_key = request[:preview_theme_key]
|
||||
|
||||
user_option = current_user&.user_option
|
||||
|
||||
|
Reference in New Issue
Block a user