Skip to content

Commit 4e7f3b0

Browse files
committed
Moved node-fs imports to resolve 'common' import for ipc
1 parent b537d6d commit 4e7f3b0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

source/main/index.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os from 'os';
22
import path from 'path';
3+
import * as fs from 'fs';
34
import { app, dialog, BrowserWindow, screen, shell } from 'electron';
45
import type { Event } from 'electron';
56
import EventEmitter from 'events';
@@ -24,6 +25,7 @@ import {
2425
RTS_FLAGS,
2526
stateDirectoryPath,
2627
} from './config';
28+
2729
import { setupCardanoNode } from './cardano/setup';
2830
import { CardanoNode } from './cardano/CardanoNode';
2931
import { safeExitWithCode } from './utils/safeExitWithCode';
@@ -54,7 +56,6 @@ import {
5456
} from './utils/rtsFlagsSettings';
5557
import { toggleRTSFlagsModeChannel } from './ipc/toggleRTSFlagsModeChannel';
5658
import { containsRTSFlags } from './utils/containsRTSFlags';
57-
import * as fs from 'fs';
5859

5960
/* eslint-disable consistent-return */
6061
// Global references to windows to prevent them from being garbage collected
@@ -173,15 +174,11 @@ const clearLedger = async () => {
173174
}
174175
};
175176

176-
177-
178-
179177
const onAppReady = async () => {
180178
setupLogging();
181179

182180
await clearLedger();
183181

184-
185182
await logUsedVersion(
186183
environment.version,
187184
path.join(pubLogsFolderPath, 'Daedalus-versions.json')

0 commit comments

Comments
 (0)