osInfo() improved uefi parsing (FreeBSD)

This commit is contained in:
Sebastian Hildebrandt 2022-11-21 11:33:27 +01:00
parent 65f66d17bf
commit e577ff374e
2 changed files with 2 additions and 2 deletions

2
lib/index.d.ts vendored
View File

@ -370,7 +370,7 @@ export namespace Systeminformation {
serial: string; serial: string;
build: string; build: string;
servicepack: string; servicepack: string;
uefi: boolean; uefi: boolean | null;
hypervizor?: boolean; hypervizor?: boolean;
remoteSession?: boolean; remoteSession?: boolean;
hypervisor?: boolean; hypervisor?: boolean;

View File

@ -277,7 +277,7 @@ function osInfo(callback) {
result.serial = serial || result.serial; result.serial = serial || result.serial;
result.codename = ''; result.codename = '';
result.codepage = util.getCodepage(); result.codepage = util.getCodepage();
result.uefi = uefi || result.uefi; result.uefi = uefi || null;
if (callback) { if (callback) {
callback(result); callback(result);
} }