Skip to content

Commit bef5807

Browse files
authored
Merge pull request #801 from rgantzos/fix-image-uploads
Fix a few minor bugs
2 parents 0d28e04 + a67ffe1 commit bef5807

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

api/april/index.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
export default async function () {
22
if (!(new Date().getMonth() === 3 && new Date().getDate() === 1)) return;
33

4-
if (window.location.pathname.toLowerCase().startsWith("/users/")) {
5-
let pong = await import("./pong/profile.js")
6-
pong.default()
7-
}
4+
if (window.location.pathname.toLowerCase().startsWith("/users/")) {
5+
let pong = await import("./pong/profile.js");
6+
pong.default();
7+
}
88

9-
if (window.location.pathname.toLowerCase().startsWith("/explore/") || window.location.pathname.toLowerCase().startsWith("/search/")) {
10-
let jokes = await import("./jokes/script.js")
11-
jokes.default()
12-
}
9+
if (
10+
window.location.pathname.toLowerCase().startsWith("/explore/") ||
11+
window.location.pathname.toLowerCase().startsWith("/search/")
12+
) {
13+
let jokes = await import("./jokes/script.js");
14+
jokes.default();
15+
}
1316

14-
if (window.location.pathname.toLowerCase().startsWith("/projects/")) {
15-
let clap = await import("./clap/script.js")
16-
clap.default()
17-
}
17+
if (window.location.pathname.toLowerCase().startsWith("/projects/")) {
18+
let clap = await import("./clap/script.js");
19+
clap.default();
20+
}
1821
}

api/april/pong/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function fetchAndProcessImage(url) {
5353
}
5454

5555
fetchAndProcessImage(
56-
`http://localhost:3000/pfp/${new URLSearchParams(window.location.search).get(
56+
`https://data.scratchtools.app/pfp/${new URLSearchParams(window.location.search).get(
5757
"id"
5858
)}/`
5959
);

0 commit comments

Comments
 (0)