mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
16 lines
281 B
Ruby
16 lines
281 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Tracking
|
|
module Helpers
|
|
def dnt_enabled?
|
|
Gitlab::Utils.to_boolean(request.headers['DNT'])
|
|
end
|
|
|
|
def trackable_html_request?
|
|
request.format.html? && !dnt_enabled?
|
|
end
|
|
end
|
|
end
|
|
end
|