mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
fix theme previewing (#6245)
This commit is contained in:
parent
0879610ffd
commit
0d45826d22
@ -13,7 +13,7 @@ class ThemesController < ::ApplicationController
|
||||
|
||||
object = targets.map do |target|
|
||||
Stylesheet::Manager.stylesheet_data(target, theme_ids).map do |hash|
|
||||
return hash unless Rails.env.development?
|
||||
next hash unless Rails.env.development?
|
||||
|
||||
dup_hash = hash.dup
|
||||
dup_hash[:new_href] << (dup_hash[:new_href].include?("?") ? "&" : "?")
|
||||
|
Loading…
Reference in New Issue
Block a user