File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/platformSelector Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments