mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 00:43:50 +01:00
fix
This commit is contained in:
parent
72de6bd8cb
commit
93f93ffb35
@ -21,6 +21,7 @@ export async function getGhIssueUrl(options: {
|
|||||||
"fullVersionList",
|
"fullVersionList",
|
||||||
"platformVersion",
|
"platformVersion",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
let osVersion = 'v' + uaData.platformVersion;
|
let osVersion = 'v' + uaData.platformVersion;
|
||||||
if (uaData.platform === 'Windows') {
|
if (uaData.platform === 'Windows') {
|
||||||
// https://learn.microsoft.com/ja-jp/microsoft-edge/web-platform/how-to-detect-win11
|
// https://learn.microsoft.com/ja-jp/microsoft-edge/web-platform/how-to-detect-win11
|
||||||
@ -35,12 +36,15 @@ export async function getGhIssueUrl(options: {
|
|||||||
osVersion = '8.1 or before';
|
osVersion = '8.1 or before';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const browserData = uaData.fullVersionList.find((item: any) => item.brand.toLowerCase() !== 'not_a brand');
|
const browserData = uaData.fullVersionList.find((item: any) => item.brand.toLowerCase() !== 'not_a brand');
|
||||||
|
|
||||||
const env = [
|
const env = [
|
||||||
`* Model and OS of the device(s): ${uaData.platform} ${osVersion}`,
|
`* Model and OS of the device(s): ${uaData.platform} ${osVersion}`,
|
||||||
`* Browser: ${browserData.brand} ${browserData.version}`,
|
`* Browser: ${browserData.brand} ${browserData.version}`,
|
||||||
`* Viewport Size: ${window.innerWidth}x${window.innerHeight}`,
|
`* Viewport Size: ${window.innerWidth}x${window.innerHeight}`,
|
||||||
`* (UA Detected Using getHighEntropyValues)`,
|
`* (UA Detected Using getHighEntropyValues)`,
|
||||||
|
(options.lang === 'ja') ? '* 【自動入力済】追記は不要です' : '* [Auto-filled] No need to write additional information.',
|
||||||
];
|
];
|
||||||
environment = env.join('\n');
|
environment = env.join('\n');
|
||||||
} else {
|
} else {
|
||||||
@ -52,6 +56,7 @@ export async function getGhIssueUrl(options: {
|
|||||||
`* Browser: ${uaRes.browser.name} (${uaRes.engine.name}) v${uaRes.browser.version}`,
|
`* Browser: ${uaRes.browser.name} (${uaRes.engine.name}) v${uaRes.browser.version}`,
|
||||||
`* Viewport Size: ${window.innerWidth}x${window.innerHeight}`,
|
`* Viewport Size: ${window.innerWidth}x${window.innerHeight}`,
|
||||||
`* Raw User Agent: ${uaRes.ua}`,
|
`* Raw User Agent: ${uaRes.ua}`,
|
||||||
|
(options.lang === 'ja') ? '* 【自動入力済】追記は不要です' : '* [Auto-filled] No need to write additional information.',
|
||||||
];
|
];
|
||||||
environment = env.join('\n');
|
environment = env.join('\n');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user