mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
clarify why block all mobile/tablet for miniprofiler
This commit is contained in:
parent
d052f1746c
commit
40d6f062f7
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue