parent
1f5aca9c31
commit
9df39c941b
1 changed files with 2 additions and 2 deletions
|
@ -220,7 +220,7 @@ Zotero_Preferences.Sync = {
|
||||||
);
|
);
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
if (check.value) {
|
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.File.putContentsAsync(resetDataDirFile, '');
|
||||||
|
|
||||||
yield Zotero.Sync.Runner.deleteAPIKey();
|
yield Zotero.Sync.Runner.deleteAPIKey();
|
||||||
|
@ -757,7 +757,7 @@ Zotero_Preferences.Sync = {
|
||||||
Zotero.DB.skipBackup = true;
|
Zotero.DB.skipBackup = true;
|
||||||
|
|
||||||
await Zotero.File.putContentsAsync(
|
await Zotero.File.putContentsAsync(
|
||||||
OS.Path.join(Zotero.DataDirectory.dir, 'restore-from-server'),
|
PathUtils.join(Zotero.DataDirectory.dir, 'restore-from-server'),
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue