Skip to content

Commit

Permalink
Merge pull request #1890 from rosahbruno/1862955-session-fix2
Browse files Browse the repository at this point in the history
Bug 1862955 - Remove optional chaining from browserstack tests
  • Loading branch information
rosahbruno authored Mar 4, 2024
2 parents d5ec750 + f3883ab commit 9fd55b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation/compat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ console.info = function () {
// Extract the session id metric.
const sessionInfo = /"session_id":".{36}"/.exec(userLifetimeMetrics);
if (!!sessionInfo.length) {
const currSessionId = sessionInfo[0]?.split(":")?.[1]?.split("\"")?.[1];
const currSessionId = sessionInfo[0].split(":")[1].split("\"")[1];
if (!!sessionId) {
if (currSessionId !== sessionId) {
var elem = document.getElementById("session_msg");
Expand Down

0 comments on commit 9fd55b4

Please sign in to comment.