Skip to content

Commit ba28fc5

Browse files
[getsentry/action-github-commit] Auto commit
1 parent 4bbb823 commit ba28fc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/platformSelector/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function PlatformSelector({
8989
const onPlatformChange = (platformKey: string) => {
9090
const cleanKey = platformKey.replace('-redirect', '');
9191
let targetPlatform = platformsAndGuides.find(platform => platform.key === cleanKey);
92-
92+
9393
// Special handling for JavaScript: when platform "javascript" is selected,
9494
// redirect to the real browser guide "javascript.browser" instead
9595
if (cleanKey === 'javascript' && targetPlatform?.type === 'platform') {
@@ -98,7 +98,7 @@ export function PlatformSelector({
9898
targetPlatform = browserGuide;
9999
}
100100
}
101-
101+
102102
if (targetPlatform) {
103103
localStorage.setItem('active-platform', targetPlatform.key);
104104
router.push(targetPlatform.url);
@@ -118,7 +118,7 @@ export function PlatformSelector({
118118
let storedPlatform = platformsAndGuides.find(
119119
platform => platform.key === storedPlatformKey
120120
);
121-
121+
122122
// Handle stored JavaScript platform: redirect to browser guide
123123
if (storedPlatformKey === 'javascript' && storedPlatform?.type === 'platform') {
124124
const browserGuide = platformsAndGuides.find(p => p.key === 'javascript.browser');

0 commit comments

Comments
 (0)