Skip to content

Commit

Permalink
fix #1
Browse files Browse the repository at this point in the history
Force the import of the script from the root of the site.
  • Loading branch information
zuozishi authored Nov 17, 2022
1 parent 294b5cc commit e81aada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MediaSession.Blazor/Components/MediaSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public partial class MediaSession : IMediaSession, IAsyncDisposable
public MediaSession(IJSRuntime jsRuntime)
{
moduleTask = new(() => jsRuntime.InvokeAsync<IJSObjectReference>(
"import", "./_content/MediaSession.Blazor/interop.js").AsTask());
"import", "/_content/MediaSession.Blazor/interop.js").AsTask());
objRef = DotNetObjectReference.Create(this);
_ = RegisterEvents();
}
Expand Down Expand Up @@ -101,4 +101,4 @@ public async ValueTask DisposeAsync()
}
GC.SuppressFinalize(this);
}
}
}

0 comments on commit e81aada

Please sign in to comment.