Skip to content

Commit 410ec42

Browse files
committed
fmt
1 parent c901e76 commit 410ec42

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Wikipedia Blame</title>
8-
</head>
9-
<body>
10-
<div id="root"></div>
11-
<script type="module" src="/src/main.tsx"></script>
12-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Wikipedia Blame</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
1313
</html>

src/services/WikipediaAPI.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export async function fetchPageId(
4949
): Promise<number | null> {
5050
try {
5151
// Using the /page/{title}/bare endpoint from REST API
52-
const url = `${baseUrl}/w/rest.php/v1/page/${encodeURIComponent(pageTitle)}/bare`;
52+
const url = `${baseUrl}/w/rest.php/v1/page/${encodeURIComponent(
53+
pageTitle
54+
)}/bare`;
5355
// guard
5456
const response = await fetch(url);
5557
if (!response.ok) {

0 commit comments

Comments
 (0)