fix theme previewing (#6245)

This commit is contained in:
Osama Sayegh 2018-08-08 10:58:45 +03:00 committed by GitHub
parent 0879610ffd
commit 0d45826d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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?("?") ? "&" : "?")