Skip to content

Commit 7d78ae7

Browse files
committed
test: avoid joinUrlSegments, align with prev test
1 parent 3192244 commit 7d78ae7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

playground/fs-serve/root/src/index.html

+1-6
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,7 @@ <h2>Denied</h2>
169169
})
170170

171171
// not imported before, outside of root, treated as unsafe
172-
fetch(
173-
joinUrlSegments(
174-
base,
175-
joinUrlSegments('/@fs/', ROOT) + '/unsafe.json?import&raw',
176-
),
177-
)
172+
fetch('/@fs/' + ROOT + '/unsafe.json?import&raw')
178173
.then((r) => {
179174
text('.unsafe-fs-fetch-raw-status', r.status)
180175
return r.json()

0 commit comments

Comments
 (0)