In my code I keep getting ReferenceError: window is not defined
even though I check for window.
my code:
var isReferrerArgonauts = window && window.document.referrer.indexOf('argonauts-bd.com') !== -1;
for sanity checking I even tried putting it window in an if statement and even checking that window !== undefined
but all to no avail.
What am I doing wrong?