diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-06-03 19:01:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 19:01:01 +0200 |
commit | 2ad39ffb1cb0d0e5f79d6948f798ca79ed73c76c (patch) | |
tree | dcb679119cf4963126a3520b7c62ae4b032e0225 /src/features/todos/containers/TodosScreen.js | |
parent | Upgraded electron to '13.1.0'. (diff) | |
download | ferdium-app-2ad39ffb1cb0d0e5f79d6948f798ca79ed73c76c.tar.gz ferdium-app-2ad39ffb1cb0d0e5f79d6948f798ca79ed73c76c.tar.zst ferdium-app-2ad39ffb1cb0d0e5f79d6948f798ca79ed73c76c.zip |
* 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
Diffstat (limited to 'src/features/todos/containers/TodosScreen.js')
-rw-r--r-- | src/features/todos/containers/TodosScreen.js | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
27 | width={todosStore.width} | 27 | width={todosStore.width} |
28 | minWidth={TODOS_MIN_WIDTH} | 28 | minWidth={TODOS_MIN_WIDTH} |
29 | resize={width => todoActions.resize({ width })} | 29 | resize={width => todoActions.resize({ width })} |
30 | userAgent={todosStore.userAgent} | ||
30 | isTodosIncludedInCurrentPlan | 31 | isTodosIncludedInCurrentPlan |
31 | /> | 32 | /> |
32 | </ErrorBoundary> | 33 | </ErrorBoundary> |