Skip to content

Commit cd2c724

Browse files
committed
address comment.
1 parent e6e4eff commit cd2c724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/utils/references.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ export const preferredVersion = writable<Version | null>(
156156
);
157157

158158
function getInitialPlatform(): Platform {
159-
const stored = globalThis?.localStorage?.getItem('preferredPlatform') ?? 'client-web';
159+
const stored = globalThis?.localStorage?.getItem('preferredPlatform') ?? Platform.ClientWeb;
160160
// return if this platform is valid
161161
if (VALID_PLATFORMS.has(stored as Platform)) {
162162
return stored as Platform;
163163
} else {
164-
return 'client-web';
164+
return Platform.ClientWeb;
165165
}
166166
}
167167

0 commit comments

Comments
 (0)