Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #249 - Update the default Chrome version for UA overrides in getDeviceAppropriateChromeUA #285

Merged
merged 1 commit into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/data/ua_overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,10 @@ const AVAILABLE_UA_OVERRIDES = [
config: {
matches: ["*://nordjyske.dk/*"],
uaTransformer: originalUA => {
return UAHelpers.getDeviceAppropriateChromeUA("97.0.4692.9", "Pixel 4");
return UAHelpers.getDeviceAppropriateChromeUA(
"103.0.5060.71",
"Pixel 4"
);
},
},
},
Expand Down Expand Up @@ -893,7 +896,7 @@ const AVAILABLE_UA_OVERRIDES = [
config: {
matches: ["*://www.otsuka.co.jp/fib/*"],
uaTransformer: originalUA => {
return UAHelpers.getDeviceAppropriateChromeUA("97.0.4692.9");
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ua_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
var UAHelpers = {
_deviceAppropriateChromeUAs: {},
getDeviceAppropriateChromeUA(
chromeVersion = "76.0.3809.111",
chromeVersion = "103.0.5060.71",
specificAndroidDevice = ""
) {
const key = `${chromeVersion}:${specificAndroidDevice}`;
Expand Down