gologin 2.0.7 → 2.0.9
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/package.json
CHANGED
package/src/gologin.js
CHANGED
|
@@ -21,8 +21,6 @@ import { archiveProfile } from './profile/profile-archiver.js';
|
|
|
21
21
|
import { get, isPortReachable } from './utils/utils.js';
|
|
22
22
|
import { API_URL } from './utils/common.js';
|
|
23
23
|
|
|
24
|
-
const exec = util.promisify(execNonPromise);
|
|
25
|
-
|
|
26
24
|
const { access, unlink, writeFile, readFile } = _promises;
|
|
27
25
|
|
|
28
26
|
const SEPARATOR = sep;
|
|
@@ -586,15 +584,15 @@ export class GoLogin {
|
|
|
586
584
|
}
|
|
587
585
|
}
|
|
588
586
|
|
|
589
|
-
const
|
|
587
|
+
const languages = this.language.replace(/;|q=[\d\.]+/img, '')
|
|
590
588
|
|
|
591
589
|
if (preferences.gologin==null) {
|
|
592
590
|
preferences.gologin = {};
|
|
593
591
|
}
|
|
594
592
|
|
|
595
593
|
preferences.gologin.langHeader = gologin.language;
|
|
596
|
-
preferences.gologin.
|
|
597
|
-
|
|
594
|
+
preferences.gologin.language = languages;
|
|
595
|
+
|
|
598
596
|
await writeFile(join(profilePath, 'Default', 'Preferences'), JSON.stringify(Object.assign(preferences, {
|
|
599
597
|
gologin,
|
|
600
598
|
})));
|