Class: Domains

domains. Domains

An object that knows how to interpret the hostname of the current site.

We serve our website on multiple domains, and sometimes we do things differently based on which domain.


new Domains(_host)

Store private reference to the provided host

Parameters:
Name Type Description
_host module:host.Host

An instance of the host utility class

Source:

Methods


isOurDomain(hostname)

Whether the hostname is in one of our known domains

Parameters:
Name Type Description
hostname external:Location.hostname

URL domain

Source:
Returns:
Type
boolean