Module: referringSite

Set reffering_site cookie (filter certain domains)


(require("referringSite"))()

If our referrer is not us and not one of the above ignored domains, set the referring_site cookie.

Expiration is unset (expires when browser is closed) because this was a "session" based cookie originally in Scala.

Source:

Members


<inner, constant> ignoredDomains :array.<string>

List of domains that are ignored when determining referring site

Type:
  • array.<string>
Source:

Methods


<static> _needsCookie(referrer, _domains)

Logic for needing to inject the cookie here for testability

Parameters:
Name Type Description
referrer Document.referrer

The referring site

_domains module:domains.Domains

An instance of module:domains.Domains

Source:
Returns:
Type
boolean