gologin 1.0.34 → 1.0.35
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 +5 -1
- package/package.json +1 -1
package/gologin.js
CHANGED
|
@@ -100,7 +100,7 @@ class GoLogin {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
async profiles() {
|
|
103
|
-
const profilesResponse = await requests.get(`${API_URL}/browser
|
|
103
|
+
const profilesResponse = await requests.get(`${API_URL}/browser/v2`, {
|
|
104
104
|
headers: {
|
|
105
105
|
'Authorization': `Bearer ${this.access_token}`,
|
|
106
106
|
'User-Agent': 'gologin-api',
|
|
@@ -450,6 +450,10 @@ class GoLogin {
|
|
|
450
450
|
await BrowserUserDataManager.composeFonts(families, profilePath, this.differentOs);
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
+
const [languages] = this.language.split(';');
|
|
454
|
+
preferences.gologin.langHeader = gologin.language;
|
|
455
|
+
preferences.gologin.languages = languages;
|
|
456
|
+
|
|
453
457
|
await writeFile(path.join(profilePath, 'Default', 'Preferences'), JSON.stringify(_.merge(preferences, {
|
|
454
458
|
gologin
|
|
455
459
|
})));
|