gologin 2.2.5 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/gologin.js +3 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/gologin.js
CHANGED
|
@@ -674,10 +674,11 @@ export class GoLogin {
|
|
|
674
674
|
await writeFile(join(profilePath, 'orbita.config'), JSON.stringify(orbitaConfig, null, '\t'), { encoding: 'utf-8' }).catch(console.log);
|
|
675
675
|
await writeFile(join(profilePath, 'Default', 'Preferences'), JSON.stringify(prefsToWrite));
|
|
676
676
|
|
|
677
|
+
const bookmarksToWrite = {};
|
|
677
678
|
const bookmarksParsedData = await getCurrentProfileBookmarks(this.bookmarksFilePath);
|
|
678
679
|
const bookmarksFromDb = profile.bookmarks?.bookmark_bar;
|
|
679
|
-
|
|
680
|
-
await writeFile(this.bookmarksFilePath, JSON.stringify(
|
|
680
|
+
bookmarksToWrite.roots = bookmarksFromDb ? profile.bookmarks : bookmarksParsedData;
|
|
681
|
+
await writeFile(this.bookmarksFilePath, JSON.stringify(bookmarksToWrite));
|
|
681
682
|
|
|
682
683
|
debug('Profile ready. Path: ', profilePath, 'PROXY', JSON.stringify(get(preferences, 'gologin.proxy')));
|
|
683
684
|
|