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 75a62e0 commit 2b8bfaaCopy full SHA for 2b8bfaa
src/runtime/initialChunkRetry.ts
@@ -45,14 +45,14 @@ function getRequestUrl(element: HTMLElement) {
45
) {
46
// For <script src="" /> or <img src="" />
47
// element.getAttribute('src') === '' but element.src === baseURI
48
- if (!element.getAttribute('src')) {
+ if (!element.getAttribute('src')?.trim()) {
49
return null;
50
}
51
return element.src;
52
53
if (element instanceof HTMLLinkElement) {
54
// For <link href="" />
55
- if (!element.getAttribute('href')) {
+ if (!element.getAttribute('href')?.trim()) {
56
57
58
return element.href;
0 commit comments