Skip to content

Commit 2f86865

Browse files
Fix for DI
1 parent 7c4f664 commit 2f86865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLogger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ static WebAssemblyConsoleLogger()
2525
_newLineWithMessagePadding = Environment.NewLine + _messagePadding;
2626
}
2727

28-
public WebAssemblyConsoleLogger(IJSInProcessRuntime jsRuntime)
29-
: this(string.Empty, jsRuntime)
28+
public WebAssemblyConsoleLogger(IJSRuntime jsRuntime)
29+
: this(string.Empty, (IJSInProcessRuntime)jsRuntime) // Cast for DI
3030
{
3131
}
3232

0 commit comments

Comments
 (0)