File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { ErrorInfo } from 'react' ;
22
3- const pluginErrorRegex = / h t t p : \/ \/ l o c a l h o s t : 1 3 3 7 \/ p l u g i n s \/ ( [ ^ \/ ] * ) \/ / ;
3+ const pluginErrorRegex = / h t t p : \/ \/ (?: l o c a l h o s t | 1 2 7 \. 0 \. 0 \. 1 ) : 1 3 3 7 \/ p l u g i n s \/ ( [ ^ \/ ] * ) \/ / ;
44const pluginSourceMapErrorRegex = / d e c k y : \/ \/ d e c k y \/ p l u g i n \/ ( [ ^ \/ ] * ) \/ / ;
55const legacyPluginErrorRegex = / d e c k y : \/ \/ d e c k y \/ l e g a c y _ p l u g i n \/ ( [ ^ \/ ] * ) \/ i n d e x .j s / ;
66
@@ -44,7 +44,7 @@ export function getLikelyErrorSource(error?: string): ErrorSource {
4444 return [ decodeURIComponent ( legacyPluginMatch [ 1 ] ) , true , false ] ;
4545 }
4646
47- if ( error ?. includes ( 'http://localhost:1337/' ) ) {
47+ if ( error ?. includes ( 'http://localhost:1337/' ) || error ?. includes ( 'http://127.0.0.1:1337/' ) ) {
4848 return [ 'the Decky frontend' , false , false ] ;
4949 }
5050 return [ 'Steam' , false , true ] ;
You can’t perform that action at this time.
0 commit comments