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:
Sam
2018-03-15 16:17:09 +11:00
parent 2097f5330c
commit ba15273d3f
3 changed files with 24 additions and 3 deletions

View File

@ -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