enhance: getHighEntropyValuesが使用できる場合でも生のUAを含めるように

This commit is contained in:
kakkokari-gtyih 2025-10-05 13:33:14 +09:00
parent 10b078c865
commit 9eb547474a
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
export type UserEnvironment = {
os: string;
browser: string;
userAgent: string;
screenWidth: number;
screenHeight: number;
viaGetHighEntropyValues: true;
@ -42,6 +43,7 @@ export async function getUserEnvironment(): Promise<UserEnvironment> {
return {
os: `${uaData.platform} ${osVersion}`,
browser: browserData ? `${browserData.brand} v${browserData.version}` : 'Unknown',
userAgent: navigator.userAgent,
screenWidth: window.innerWidth,
screenHeight: window.innerHeight,
viaGetHighEntropyValues: true,