clarify why block all mobile/tablet for miniprofiler
This commit is contained in:
parent
d052f1746c
commit
40d6f062f7
|
@ -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']
|
||||
|
||||
|
|
Loading…
Reference in New Issue