Skip to content

Commit

Permalink
Remove the netlify mention
Browse files Browse the repository at this point in the history
  • Loading branch information
cramforce committed Mar 13, 2022
1 parent 3d8c2df commit 703b81d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions functions/ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ exports.handler = function (event, context, callback) {
const origin = event.headers["origin"] || event.headers["Origin"] || "";
console.log(`Received ${event.httpMethod} request from, origin: ${origin}`);

const isOriginallowlisted =
originallowlist.indexOf(origin) >= 0 ||
origin.endsWith("-upbeat-shirley-608546.netlify.app") >= 0;
const isOriginallowlisted = originallowlist.indexOf(origin) >= 0;
if (!isOriginallowlisted) {
console.info("Bad origin", origin);
}
Expand Down

0 comments on commit 703b81d

Please sign in to comment.