Skip to content

Commit c6a7d25

Browse files
authored
Add alert for failed fetch response in index.html
1 parent e3098a5 commit c6a7d25

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Cropper.Blazor/Client/wwwroot/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
return (async function () {
5555
const response = await fetch(defaultUri + '.br', { cache: 'no-cache' });
5656
if (!response.ok) {
57+
alert(`Failed to fetch ${name}: ${response.statusText}`);
5758
throw new Error(response.statusText);
5859
}
5960
const originalResponseBuffer = await response.arrayBuffer();

0 commit comments

Comments
 (0)