I’ve not tried this, but just looking at the code the test seems wrong to me. I would think that it should read:
if (window.location.hostname.replaceAll('.','') !== "pnwjourneycom" && window.location.hostname.replaceAll('.','') !== "pnwlifecom") {
As written, I would think that ORing with a non-empty string would make the test always true, which definitely isn’t what is wanted. Also, since the hostname can never be both of the domains, one of the tests will always be true, so the OR would once again always be true. What you’re wanting to check is if it’s not your first domain AND it’s not your second domain, so it should be an AND here instead of an OR.