diff --git a/src/Component/Message.tsx b/src/Component/Message.tsx index 32d7728..a4b3f20 100644 --- a/src/Component/Message.tsx +++ b/src/Component/Message.tsx @@ -86,7 +86,7 @@ class ConsoleMessage extends React.Component { log.data.every((message) => typeof message === 'string') && log.method === 'error' ) { - return + return } // Normal inspector diff --git a/src/Component/message-parsers/Error.tsx b/src/Component/message-parsers/Error.tsx index 2a66b29..ee8d8c1 100644 --- a/src/Component/message-parsers/Error.tsx +++ b/src/Component/message-parsers/Error.tsx @@ -1,5 +1,6 @@ import * as React from 'react' import Linkify from 'linkifyjs/react' +import type { Options } from 'linkifyjs' function splitMessage(message: string): string { const breakIndex = message.indexOf('\n') @@ -10,7 +11,13 @@ function splitMessage(message: string): string { return message.substr(0, breakIndex) } -function ErrorPanel({ error }: { error: string }) { +function ErrorPanel({ + error, + linkifyOptions, +}: { + error: string + linkifyOptions?: Options +}) { /* This checks for error logTypes and shortens the message in the console by wrapping it a
tag and putting the first line in a tag and the other lines follow after that. This creates a nice collapsible error message */ @@ -30,7 +37,7 @@ function ErrorPanel({ error }: { error: string }) { {firstLine} - {otherErrorLines.join('\n\r')} + {otherErrorLines.join('\n\r')}
) }