Skip to content

Commit

Permalink
fix: Update cookie to match original spec
Browse files Browse the repository at this point in the history
  • Loading branch information
devfreddy committed Nov 4, 2021
1 parent 670f066 commit 479705f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/InstallButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ const InstallButton = ({ quickstart, location, ...props }) => {
options.domain = 'newrelic.com';
}

const startTarget = btoa(JSON.stringify({
source: "nrio",
target: quickstart.id
}));
Cookies.set('start_target', startTarget, options);
Cookies.set('newrelic-quickstart-id', quickstart.id, options);
};

Expand Down

0 comments on commit 479705f

Please sign in to comment.