Skip to content

Commit 1beb821

Browse files
committed
fix: conditionally add 'start' parameter in URL building functions
1 parent a171c93 commit 1beb821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/live-utils/start-session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function buildDesktopUrl(
9494
resolution: "responsive-mode",
9595
speed: "1",
9696
local: isLocal ? "true" : "false",
97-
start: "true",
97+
...(isLocal ? {} : { start: "true" }),
9898
});
9999
return `https://live.browserstack.com/dashboard#${params.toString()}`;
100100
}
@@ -120,7 +120,7 @@ function buildMobileUrl(
120120
scale_to_fit: "true",
121121
speed: "1",
122122
local: isLocal ? "true" : "false",
123-
start: "true",
123+
...(isLocal ? {} : { start: "true" }),
124124
});
125125
return `https://live.browserstack.com/dashboard#${params.toString()}`;
126126
}

0 commit comments

Comments
 (0)