mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: only remove custom CSS in admin on first load
This commit is contained in:
@@ -153,11 +153,14 @@ module ApplicationHelper
|
||||
MobileDetection.mobile_device?(request.user_agent)
|
||||
end
|
||||
|
||||
|
||||
def customization_disabled?
|
||||
session[:disable_customization]
|
||||
end
|
||||
|
||||
def loading_admin?
|
||||
controller.class.name.split("::").first == "Admin"
|
||||
end
|
||||
|
||||
def category_badge(category, opts=nil)
|
||||
CategoryBadge.html_for(category, opts).html_safe
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user