mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
filter out android from mini profiler
This commit is contained in:
@@ -16,7 +16,7 @@ if defined?(Rack::MiniProfiler)
|
|||||||
|
|
||||||
# For our app, let's just show mini profiler always, polling is chatty so nuke that
|
# 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|
|
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'] !~ /^\/message-bus/) &&
|
||||||
(env['PATH_INFO'] !~ /topics\/timings/) &&
|
(env['PATH_INFO'] !~ /topics\/timings/) &&
|
||||||
(env['PATH_INFO'] !~ /assets/) &&
|
(env['PATH_INFO'] !~ /assets/) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user