mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 21:01:33 +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:
parent
2097f5330c
commit
ba15273d3f
3 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue