fix device name
This commit is contained in:
@@ -24,7 +24,10 @@ ipcMain.handle('device:name', () => {
|
|||||||
const cpus = os.cpus();
|
const cpus = os.cpus();
|
||||||
if (cpus && cpus.length > 0) {
|
if (cpus && cpus.length > 0) {
|
||||||
const cpuModel = cpus[0].model;
|
const cpuModel = cpus[0].model;
|
||||||
deviceName += cpuModel.replace("Apple", "").replace("Processor", "");
|
/**
|
||||||
|
* Fix device name
|
||||||
|
*/
|
||||||
|
deviceName += cpuModel.replace("Apple", "").replace("Processor", "").replace("Silicon", "ARM");
|
||||||
}
|
}
|
||||||
|
|
||||||
return deviceName.trim();
|
return deviceName.trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user