From 9df39c941b381a9640efcb429a6ee045953ece04 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 4 Apr 2024 07:09:09 -0400 Subject: [PATCH] Fix error when unlinking account and deleting data Fixes #3919 --- chrome/content/zotero/preferences/preferences_sync.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_sync.jsx b/chrome/content/zotero/preferences/preferences_sync.jsx index 1609fb5e71..be4ca88a56 100644 --- a/chrome/content/zotero/preferences/preferences_sync.jsx +++ b/chrome/content/zotero/preferences/preferences_sync.jsx @@ -220,7 +220,7 @@ Zotero_Preferences.Sync = { ); if (index == 0) { if (check.value) { - var resetDataDirFile = OS.Path.join(Zotero.DataDirectory.dir, 'reset-data-directory'); + var resetDataDirFile = PathUtils.join(Zotero.DataDirectory.dir, 'reset-data-directory'); yield Zotero.File.putContentsAsync(resetDataDirFile, ''); yield Zotero.Sync.Runner.deleteAPIKey(); @@ -757,7 +757,7 @@ Zotero_Preferences.Sync = { Zotero.DB.skipBackup = true; await Zotero.File.putContentsAsync( - OS.Path.join(Zotero.DataDirectory.dir, 'restore-from-server'), + PathUtils.join(Zotero.DataDirectory.dir, 'restore-from-server'), '' );