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.
locationStub
1 parent 9b14321 commit 2344ec2Copy full SHA for 2344ec2
src/prerender.js
@@ -51,9 +51,9 @@ export function locationStub(path) {
51
const u = new URL(path, 'http://localhost');
52
for (const i in u) {
53
try {
54
- globalThis.location[i] = /to[A-Z]/.test(i)
55
- ? u[i].bind(u)
56
- : String(u[i]);
+ globalThis.location[i] = /to[A-Z]/.test(i)
+ ? u[i].bind(u)
+ : String(u[i]);
57
} catch {}
58
}
59
0 commit comments