- Ensuring that SwitchLocale concern handles the case of custom domain for portals and set locale according to that Co-authored-by: Sojan Jose <sojan@pepalo.com>
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
|