We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bd084b commit b30bb70Copy full SHA for b30bb70
1 file changed
src/components/BootstrapBlazor.PdfReader/PdfReader.razor.cs
@@ -193,7 +193,7 @@ protected override void OnParametersSet()
193
{
194
CurrentPage = 1;
195
}
196
- _docTitle = ShowFileName ? Path.GetFileName(Url) : null;
+ _docTitle = ShowFileName && !string.IsNullOrEmpty(Url) ? Path.GetFileName(Url) : null;
197
198
199
/// <summary>
0 commit comments