fix: no electronVersion.

This commit is contained in:
Ansolve 2024-01-03 02:32:41 +08:00
parent a7a15cb21a
commit c30e654688
No known key found for this signature in database
GPG Key ID: 2F2873AC9538CC2D
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@ import { status as _status } from '../status/index.js';
import { UI as ui } from '../ui/index.js';
export function nodeReady() {
const versions = window.process.versions;
// @ts-ignore
const electronVersion = parseFloat(versions.electron);
lib.node = {
fs: require('fs'),
path: require("path"),