diff options
| author | AAGaming <aagaming@riseup.net> | 2025-11-19 23:42:16 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2025-11-19 23:42:16 -0500 |
| commit | e267ba9135cb71312574ac168140fa5da226f7a9 (patch) | |
| tree | e7c498d9931070aa6116f2b43adb2fcc0dafc8db | |
| parent | 44bb023b804b0ab360214360a3947935fb41c86c (diff) | |
| download | decky-loader-e267ba9135cb71312574ac168140fa5da226f7a9.tar.gz decky-loader-e267ba9135cb71312574ac168140fa5da226f7a9.zip | |
error regex update
| -rw-r--r-- | frontend/src/utils/errors.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/utils/errors.ts b/frontend/src/utils/errors.ts index da19f810..21736712 100644 --- a/frontend/src/utils/errors.ts +++ b/frontend/src/utils/errors.ts @@ -1,6 +1,6 @@ import { ErrorInfo } from 'react'; -const pluginErrorRegex = /http:\/\/localhost:1337\/plugins\/([^\/]*)\//; +const pluginErrorRegex = /http:\/\/(?:localhost|127\.0\.0\.1):1337\/plugins\/([^\/]*)\//; const pluginSourceMapErrorRegex = /decky:\/\/decky\/plugin\/([^\/]*)\//; const legacyPluginErrorRegex = /decky:\/\/decky\/legacy_plugin\/([^\/]*)\/index.js/; @@ -44,7 +44,7 @@ export function getLikelyErrorSource(error?: string): ErrorSource { return [decodeURIComponent(legacyPluginMatch[1]), true, false]; } - if (error?.includes('http://localhost:1337/')) { + if (error?.includes('http://localhost:1337/') || error?.includes('http://127.0.0.1:1337/')) { return ['the Decky frontend', false, false]; } return ['Steam', false, true]; |
