osInfo() fix uefi detection (win)
This commit is contained in:
parent
7b61c35c08
commit
1624bfc9cc
@ -77,6 +77,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 5.7.13 | 2021-07-28 | `osInfo()` fix uefi detection (win) |
|
||||||
| 5.7.12 | 2021-07-27 | `osInfo()` fix uefi detection (win) |
|
| 5.7.12 | 2021-07-27 | `osInfo()` fix uefi detection (win) |
|
||||||
| 5.7.11 | 2021-07-27 | typescript typings fix `bluetoothDevices()` |
|
| 5.7.11 | 2021-07-27 | typescript typings fix `bluetoothDevices()` |
|
||||||
| 5.7.10 | 2021-07-26 | typescript typings fix `processLoad()` |
|
| 5.7.10 | 2021-07-26 | typescript typings fix `processLoad()` |
|
||||||
|
|||||||
@ -56,6 +56,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">5.7.13</th>
|
||||||
|
<td>2021-07-28</td>
|
||||||
|
<td><span class="code">osInfo()</span> fix uefi detection (win)</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">5.7.12</th>
|
<th scope="row">5.7.12</th>
|
||||||
<td>2021-07-27</td>
|
<td>2021-07-27</td>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span> </div>
|
<div class="subtitle"><span id="typed"></span> </div>
|
||||||
<div class="version">New Version: <span id="version">5.7.12</span></div>
|
<div class="version">New Version: <span id="version">5.7.13</span></div>
|
||||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -393,11 +393,11 @@ function isUefiWindows() {
|
|||||||
if (!error) {
|
if (!error) {
|
||||||
const line = stdout.toString() || '';
|
const line = stdout.toString() || '';
|
||||||
return resolve(line.toLowerCase().indexOf('efi') >= 0);
|
return resolve(line.toLowerCase().indexOf('efi') >= 0);
|
||||||
}
|
} else {
|
||||||
return resolve(false);
|
return resolve(false);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return resolve(false);
|
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return resolve(false);
|
return resolve(false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user