mirror of https://github.com/keeweb/keeweb
moveing files
parent
f3c4af1cbb
commit
090e75b6ed
|
@ -408,9 +408,9 @@ function restorePreferences() {
|
|||
const oldProfilePath = path.join(tempUserDataPath, oldProfile.dir);
|
||||
const newProfilePath = path.join(tempUserDataPath, newProfile.dir);
|
||||
if (fs.existsSync(path.join(oldProfilePath, 'Cookies'))) {
|
||||
const oldCookies = fs.readFileSync(path.join(oldProfilePath, 'Cookies'));
|
||||
fs.mkdirSync(newProfilePath);
|
||||
fs.writeFileSync(path.join(newProfilePath, 'Cookies'), oldCookies);
|
||||
fs.renameSync(path.join(oldProfilePath, 'Cookies'),
|
||||
path.join(newProfilePath, 'Cookies'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue