Skip to content

Commit

Permalink
Revert ConfirmChangeDirectoryDir
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 17, 2025
1 parent bc0672e commit 9662cae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function ConfirmChangeDocumentDirModal({
const dispatch = useDispatch();

const restartElectronServer = useCallback(() => {
window.Actual.restartElectronServer();
globalThis.Actual.restartElectronServer();
}, []);

const [_documentDir, setDocumentDirPref] = useGlobalPref(
Expand All @@ -64,7 +64,7 @@ export function ConfirmChangeDocumentDirModal({
setLoading(true);
try {
if (moveFiles) {
await window.Actual.moveBudgetDirectory(
await globalThis.Actual.moveBudgetDirectory(
currentBudgetDirectory,
newDirectory,
);
Expand Down

0 comments on commit 9662cae

Please sign in to comment.