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/features/todos/containers/TodosScreen.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/features/todos/containers/TodosScreen.js') diff --git a/src/features/todos/containers/TodosScreen.js b/src/features/todos/containers/TodosScreen.js index 884925be6..631893f93 100644 --- a/src/features/todos/containers/TodosScreen.js +++ b/src/features/todos/containers/TodosScreen.js @@ -27,6 +27,7 @@ class TodosScreen extends Component { width={todosStore.width} minWidth={TODOS_MIN_WIDTH} resize={width => todoActions.resize({ width })} + userAgent={todosStore.userAgent} isTodosIncludedInCurrentPlan /> -- cgit v1.2.3-70-g09d2