diff --git a/adapter/i18n/en.pot b/adapter/i18n/en.pot index 7cd6b8da..1ffb7fec 100644 --- a/adapter/i18n/en.pot +++ b/adapter/i18n/en.pot @@ -5,8 +5,8 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2024-06-21T08:27:55.991Z\n" -"PO-Revision-Date: 2024-06-21T08:27:55.991Z\n" +"POT-Creation-Date: 2024-08-28T09:08:40.219Z\n" +"PO-Revision-Date: 2024-08-28T09:08:40.219Z\n" msgid "Save your data" msgstr "Save your data" @@ -51,9 +51,6 @@ msgstr "Try again" msgid "Something went wrong" msgstr "Something went wrong" -msgid "Redirect to safe login mode" -msgstr "Redirect to safe login mode" - msgid "Hide technical details" msgstr "Hide technical details" diff --git a/adapter/src/components/ErrorBoundary.js b/adapter/src/components/ErrorBoundary.js index e8049e84..030d68ae 100644 --- a/adapter/src/components/ErrorBoundary.js +++ b/adapter/src/components/ErrorBoundary.js @@ -59,6 +59,9 @@ export class ErrorBoundary extends Component { this.props.onPluginError(error) } } + if (this.props.loginApp) { + console.error(error) + } this.setState({ error, errorInfo, @@ -96,6 +99,10 @@ export class ErrorBoundary extends Component { const { children, fullscreen, onRetry, loginApp, baseURL } = this.props if (this.state.error) { + if (loginApp && baseURL) { + this.handleSafeLoginRedirect() + } + if (this.props.plugin) { return ( <> @@ -136,15 +143,6 @@ export class ErrorBoundary extends Component {