I think you’re just missing an opening bracket in the first if statement.
if (window.location.hostname.replaceAll('.','') !== "pnwjourneycom" || "pnwlifecom")
should be:
if (window.location.hostname.replaceAll('.','') !== "pnwjourneycom" || "pnwlifecom") {