Class: Host

Host

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

We serve our website on multiple domains, and we need to know information about our current host in order to enable/disable certain functionality.


new Host()

Set dynamic values for properties

Source:
To Do:
  • Determine whether all properties must have `@type` set

Members


environment

A boolean indicating if this is the testing website

Source:

isDevelopment

A boolean indicating if this is a development VM

Source:

isGfDomain

A boolean indicating if we are on a goldenfrog domain

Source:

isPrimaryDomain

A boolean value indicating we are on a primary domain

Source:

isProduction

A boolean indicating if this is the production website

Source:

isStaging

A boolean indicating if this is the staging website

Source:

isTesting

A boolean indicating if this is the testing website

Source:

isUnbounceDomain

A boolean indicating if we are on a unbounce domain

Source:

locationDomain :string

The domain portion of the current location

Type:
  • string
Source:

siteJSLoadingElement :HTMLElement

Site JS element

Type:
  • HTMLElement
Source:

siteJSLocation :string

Site JS location

Type:
  • string
Source: