We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2372edd commit 27f1ee9Copy full SHA for 27f1ee9
src/lang/std/fileSystemManager.ts
@@ -182,15 +182,11 @@ export class FileSystemManager {
182
}
183
184
185
-export const fsManager = new FileSystemManager(
186
- nodePath,
187
- window?.electron ?? testNodeFs
188
-)
+const fsInstance =
+ (typeof window !== 'undefined' ? window.electron : undefined) ?? testNodeFs
+export const fsManager = new FileSystemManager(nodePath, fsInstance)
189
190
/**
191
* The project directory is set on this.
192
*/
193
-export const projectFsManager = new FileSystemManager(
194
195
196
+export const projectFsManager = new FileSystemManager(nodePath, fsInstance)
0 commit comments