mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 17:47:00 -05:00
Refactor rootPath determination in Electron file system module by removing legacy case for 'bundle.api.js'. This simplifies the path management for the Electron app.
This commit is contained in:
@@ -13,9 +13,6 @@ export { getDocumentDir, getBudgetDir, _setDocumentDir } from './shared';
|
||||
let rootPath = path.join(__dirname, '..', '..', '..', '..');
|
||||
|
||||
switch (path.basename(__filename)) {
|
||||
case 'bundle.api.js': // api bundle uses the electron bundle - account for its file structure
|
||||
rootPath = path.join(__dirname, '..');
|
||||
break;
|
||||
case 'bundle.desktop.js': // electron app
|
||||
rootPath = path.join(__dirname, '..', '..');
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user