6 lines
199 B
Ruby
6 lines
199 B
Ruby
module DomainHelper
|
|
def self.chatwoot_domain?(domain = request.host)
|
|
[URI.parse(ENV.fetch('FRONTEND_URL', '')).host, URI.parse(ENV.fetch('HELPCENTER_URL', '')).host].include?(domain)
|
|
end
|
|
end
|