Skip to content

Commit

Permalink
clean up injectGetLocationHint
Browse files Browse the repository at this point in the history
  • Loading branch information
dcottingham committed Sep 17, 2022
1 parent af7478b commit 1492322
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/edgeNetwork/injectGetLocationHint.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ import { MBOX_EDGE_CLUSTER } from "../../constants/legacyCookies";
export default ({ orgId, cookieJar }) => {
const clusterCookieName = getNamespacedCookieName(orgId, CLUSTER);
const fromClusterCookie = () => cookieJar.get(clusterCookieName);
const fromTarget = () => {
const mboxEdgeCluster = cookieJar.get(MBOX_EDGE_CLUSTER);
return mboxEdgeCluster || undefined;
};

const fromTarget = () => cookieJar.get(MBOX_EDGE_CLUSTER);
return () => {
return fromClusterCookie() || fromTarget();
};
Expand Down

0 comments on commit 1492322

Please sign in to comment.