gologin 1.0.41 → 1.0.42
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/gologin.js +4 -1
- package/package.json +1 -1
package/gologin.js
CHANGED
|
@@ -360,7 +360,10 @@ class GoLogin {
|
|
|
360
360
|
|
|
361
361
|
const prefFileExists = await access(pref_file_name).then(() => true).catch(() => false);
|
|
362
362
|
if (!prefFileExists) {
|
|
363
|
-
debug('Preferences file not exists waiting', pref_file_name);
|
|
363
|
+
debug('Preferences file not exists waiting', pref_file_name, '. Using empty profile');
|
|
364
|
+
profile_folder = await this.emptyProfileFolder();
|
|
365
|
+
await writeFile(this.profile_zip_path, profile_folder);
|
|
366
|
+
await this.extractProfile(profilePath, this.profile_zip_path);
|
|
364
367
|
}
|
|
365
368
|
|
|
366
369
|
const preferences_raw = await readFile(pref_file_name);
|