mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #2503 - Part 3: Add CPU capabilities to about:support.
This commit is contained in:
parent
baf98e0dde
commit
407a79e79f
3 changed files with 14 additions and 0 deletions
|
|
@ -39,6 +39,10 @@ var snapshotFormatters = {
|
|||
$("application-box").textContent = data.name;
|
||||
$("useragent-box").textContent = data.userAgent;
|
||||
$("os-box").textContent = data.osVersion;
|
||||
let cpucaps = navigator.cpuHasSSE2?"SSE2 ":"";
|
||||
cpucaps += navigator.cpuHasAVX?"AVX ":"";
|
||||
cpucaps += navigator.cpuHasAVX2?"AVX2 ":"";
|
||||
$("cpucap-box").textContent = cpucaps;
|
||||
$("binary-box").textContent = Services.dirsvc.get("XREExeF", Ci.nsIFile).path;
|
||||
$("supportLink").href = data.supportURL;
|
||||
let version = Services.appinfo.version;
|
||||
|
|
|
|||
|
|
@ -142,6 +142,15 @@
|
|||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th class="column">
|
||||
&aboutSupport.appBasicsCPUCaps;
|
||||
</th>
|
||||
|
||||
<td id="cpucap-box">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="no-copy">
|
||||
<th class="column">
|
||||
&aboutSupport.appBasicsBinary;
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ Windows/Mac use the term "Folder" instead of "Directory" -->
|
|||
<!ENTITY aboutSupport.appBasicsBuildConfig "Build Configuration">
|
||||
<!ENTITY aboutSupport.appBasicsUserAgent "User Agent">
|
||||
<!ENTITY aboutSupport.appBasicsOS "OS">
|
||||
<!ENTITY aboutSupport.appBasicsCPUCaps "CPU Capabilities">
|
||||
<!ENTITY aboutSupport.appBasicsMemoryUse "Memory Use">
|
||||
<!ENTITY aboutSupport.appBasicsPerformance "Performance">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue