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 f3e14ce commit bc2d90aCopy full SHA for bc2d90a
src/lang/std/fileSystemManager.ts
@@ -181,15 +181,11 @@ export class FileSystemManager {
181
}
182
183
184
-export const fsManager = new FileSystemManager(
185
- nodePath,
186
- window?.electron ?? testNodeFs
187
-)
+const fsInstance =
+ (typeof window !== 'undefined' ? window.electron : undefined) ?? testNodeFs
+export const fsManager = new FileSystemManager(nodePath, fsInstance)
188
189
/**
190
* The project directory is set on this.
191
*/
192
-export const projectFsManager = new FileSystemManager(
193
194
195
+export const projectFsManager = new FileSystemManager(nodePath, fsInstance)
0 commit comments