filter out android from mini profiler
This commit is contained in:
parent
932c2675a7
commit
11428ef9d6
|
@ -16,7 +16,7 @@ if defined?(Rack::MiniProfiler)
|
|||
|
||||
# For our app, let's just show mini profiler always, polling is chatty so nuke that
|
||||
Rack::MiniProfiler.config.pre_authorize_cb = lambda do |env|
|
||||
(env['HTTP_USER_AGENT'] !~ /iPad|iPhone|Nexus 7/) &&
|
||||
(env['HTTP_USER_AGENT'] !~ /iPad|iPhone|Nexus 7|Android/) &&
|
||||
(env['PATH_INFO'] !~ /^\/message-bus/) &&
|
||||
(env['PATH_INFO'] !~ /topics\/timings/) &&
|
||||
(env['PATH_INFO'] !~ /assets/) &&
|
||||
|
|
Loading…
Reference in New Issue