(pathname: string)
| 123 | } |
| 124 | |
| 125 | function cleanUrl(pathname: string): string { |
| 126 | const url = new URL(pathname, 'http://vite.dev') |
| 127 | url.searchParams.delete('direct') |
| 128 | return url.pathname + url.search |
| 129 | } |
| 130 | |
| 131 | let isFirstUpdate = true |
| 132 | const outdatedLinkTags = new WeakSet<HTMLLinkElement>() |