Skip to content

Commit

Permalink
Merge pull request #313 from mbta/dependabot/npm_and_yarn/assets/full…
Browse files Browse the repository at this point in the history
…story/browser-2.0.4

Bump @fullstory/browser from 1.7.1 to 2.0.4 in /assets
  • Loading branch information
cmaddox5 authored Apr 23, 2024
2 parents 2f64ca6 + b83c84e commit 0e86a12
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
11 changes: 9 additions & 2 deletions assets/js/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ReactDOM from "react-dom";

import App from "./components/App";
import * as Sentry from "@sentry/react";
import * as FullStory from "@fullstory/browser";
import { FullStory, init as initFullStory } from "@fullstory/browser";

const environment = document
.querySelector("meta[name=environment-name]")
Expand Down Expand Up @@ -40,7 +40,14 @@ const fullstoryOrgId = document
?.getAttribute("content");

if (fullstoryOrgId) {
FullStory.init({ orgId: fullstoryOrgId, recordCrossDomainIFrames: true });
initFullStory({ orgId: fullstoryOrgId, recordCrossDomainIFrames: true });

if (username) {
FullStory("setIdentity", {
uid: username,
properties: { displayName: username },
});
}
}

ReactDOM.render(<App />, document.getElementById("app"));
14 changes: 8 additions & 6 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"check": "npm run lint:check && npm run format:check"
},
"dependencies": {
"@fullstory/browser": "^1.6.2",
"@fullstory/browser": "^2.0.4",
"@heroicons/react": "^1.0.4",
"@sentry/react": "^7.14.0",
"bootstrap": "^5.1.3",
Expand Down

0 comments on commit 0e86a12

Please sign in to comment.