diff --git a/MediaSession.Blazor/Components/MediaSession.cs b/MediaSession.Blazor/Components/MediaSession.cs index a63d4b7..57830e3 100644 --- a/MediaSession.Blazor/Components/MediaSession.cs +++ b/MediaSession.Blazor/Components/MediaSession.cs @@ -11,7 +11,7 @@ public partial class MediaSession : IMediaSession, IAsyncDisposable public MediaSession(IJSRuntime jsRuntime) { moduleTask = new(() => jsRuntime.InvokeAsync( - "import", "./_content/MediaSession.Blazor/interop.js").AsTask()); + "import", "/_content/MediaSession.Blazor/interop.js").AsTask()); objRef = DotNetObjectReference.Create(this); _ = RegisterEvents(); } @@ -101,4 +101,4 @@ public async ValueTask DisposeAsync() } GC.SuppressFinalize(this); } -} \ No newline at end of file +}