clarify why block all mobile/tablet for miniprofiler

This commit is contained in:
Jeff Atwood 2016-03-15 16:54:40 -07:00
parent d052f1746c
commit 40d6f062f7

View file

@ -42,7 +42,8 @@ if defined?(Rack::MiniProfiler)
/^\/favicon\/proxied/
]
# For our app, let's just show mini profiler always, polling is chatty so nuke that
# we DO NOT WANT mini-profiler loading on anything but real desktops and laptops
# so let's rule out all handheld, tablet, and mobile devices
Rack::MiniProfiler.config.pre_authorize_cb = lambda do |env|
path = env['PATH_INFO']