Skip to content

Commit 64de284

Browse files
committed
chore(app): removing unnecessary instruction.
1 parent 6c95101 commit 64de284

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

internal/project/app/lib/scripts/core/swap.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ export async function swap(target: HTMLAnchorElement | HTMLFormElement, view: Vi
1111
const body: Record<string, string> = {}
1212
if (target.nodeName === "A") {
1313
const anchor = target as HTMLAnchorElement
14-
requestUrl = anchor.href
1514
const parts = anchor.href.split("#", 2)
1615
requestUrl = parts[0]
1716
if (view.type === "snapshot") {
1817
requestUrl = requestUrl.replace(/\/+$/, "") + "/data.json"
19-
}
20-
if (parts.length >= 2) {
18+
} else if (parts.length >= 2) {
2119
requestUrl += `#${parts[1]}`
2220
}
2321
response = await fetch(requestUrl, {

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.46.0-alpha.58
1+
v1.46.0-alpha.59

0 commit comments

Comments
 (0)