Skip to content

Commit 2eb44bc

Browse files
committed
Typo
1 parent edff9ca commit 2eb44bc

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

application.meta.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// - DO NOT add any wierd references here
1010

1111
const Application = {
12-
name: "detris",
13-
version: "1.0.0-alpha.0",
14-
repository: "https://github.com/hexagon/detris",
15-
}
12+
name: "detris",
13+
version: "1.0.0-alpha.0",
14+
repository: "https://github.com/hexagon/detris",
15+
};
1616

17-
export { Application }
17+
export { Application };

assets/static/js/main.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ xhr.open("GET", "api/meta");
1818
xhr.onload = function () {
1919
if (xhr.status === 200) {
2020
const res = JSON.parse(xhr.responseText);
21-
console.log(res)
21+
console.log(res);
2222
if (res.version) {
23-
const
24-
elmVersion = document.getElementById("version");
23+
const elmVersion = document.getElementById("version");
2524
if (elmVersion) elmVersion.innerHTML = res.version;
2625
}
2726
if (res.instance) {
28-
const
29-
elmInstance = document.getElementById("instance");
27+
const elmInstance = document.getElementById("instance");
3028
if (elmInstance) elmInstance.innerHTML = res.instance;
3129
}
3230
}

server/router.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const routes = [
88
pattern: new URLPattern({ pathname: "/api/meta" }),
99
handler: function (
1010
_req: Request,
11-
_match: Record<string, string>
11+
_match: Record<string, string>,
1212
): Response | undefined {
13-
const meta = {
13+
const meta = {
1414
...Application,
15-
instance: Deno.env.get("PUP_CLUSTER_INDEX") || "0"
16-
}
15+
instance: Deno.env.get("PUP_CLUSTER_INSTANCE") || "0",
16+
};
1717
return new Response(JSON.stringify(meta), {
1818
status: 200,
1919
headers: {

0 commit comments

Comments
 (0)