From 2ad39ffb1cb0d0e5f79d6948f798ca79ed73c76c Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 3 Jun 2021 19:01:01 +0200 Subject: Expose Chrome version to todos webview (fix #1211) (#1478) * Expose Chrome version to todos webview (fix #1211) The TickTick todo service fails to load if the Chrome version number does not appear in the User-Agent string. However, login to Google Tasks is prevented by the same. We adopt the "chromeless" User-Agent logic from the service webview, which selectively exposes the Chrome version everywhere except the Google login screen. The common logic was moved into the userAgent-helpers module. * Refactor user agent switching * "Chromeless" user agent switching is extracted into a separate model * Both the service and the todos webview uses the same model --- src/i18n/locales/defaultMessages.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/i18n/locales/defaultMessages.json') diff --git a/src/i18n/locales/defaultMessages.json b/src/i18n/locales/defaultMessages.json index ef25aa3d9..c44357396 100644 --- a/src/i18n/locales/defaultMessages.json +++ b/src/i18n/locales/defaultMessages.json @@ -6412,39 +6412,39 @@ "defaultMessage": "!!!Franz Todos are available to premium users now!", "end": { "column": 3, - "line": 36 + "line": 34 }, "file": "src/features/todos/components/TodosWebview.js", "id": "feature.todos.premium.info", "start": { "column": 15, - "line": 33 + "line": 31 } }, { "defaultMessage": "!!!Upgrade Account", "end": { "column": 3, - "line": 40 + "line": 38 }, "file": "src/features/todos/components/TodosWebview.js", "id": "feature.todos.premium.upgrade", "start": { "column": 14, - "line": 37 + "line": 35 } }, { "defaultMessage": "!!!Everyone else will have to wait a little longer.", "end": { "column": 3, - "line": 44 + "line": 42 }, "file": "src/features/todos/components/TodosWebview.js", "id": "feature.todos.premium.rollout", "start": { "column": 15, - "line": 41 + "line": 39 } } ], -- cgit v1.2.3-54-g00ecf