asarfuckery/appasar/canary/common/processUtils.js

12 lines
315 B
JavaScript
Raw Normal View History

2020-12-03 21:57:59 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getElectronMajorVersion = getElectronMajorVersion;
const process = require('process');
function getElectronMajorVersion() {
return process.versions.electron != null ? parseInt(process.versions.electron.split('.')[0]) : 0;
}