mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 04:05:04 +03:00
error regex update
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { ErrorInfo } from 'react';
|
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 pluginSourceMapErrorRegex = /decky:\/\/decky\/plugin\/([^\/]*)\//;
|
||||||
const legacyPluginErrorRegex = /decky:\/\/decky\/legacy_plugin\/([^\/]*)\/index.js/;
|
const legacyPluginErrorRegex = /decky:\/\/decky\/legacy_plugin\/([^\/]*)\/index.js/;
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ export function getLikelyErrorSource(error?: string): ErrorSource {
|
|||||||
return [decodeURIComponent(legacyPluginMatch[1]), true, false];
|
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 ['the Decky frontend', false, false];
|
||||||
}
|
}
|
||||||
return ['Steam', false, true];
|
return ['Steam', false, true];
|
||||||
|
|||||||
Reference in New Issue
Block a user