Zwischenspeicher

This commit is contained in:
LionTion committed 2026-10-13 21:36:04 +02:00
1 parent ff5efa0423
commit a6c476e385
6 files changed
+159 -4

No files matched your search

+1
View File
@@ -0,0 +1 @@
// TODO: CodeChecker
+3 -1
View File
@@ -9,4 +9,6 @@ export enum PREF {
readerState = "PREF_LAST_READER_STATE",
voiceover = "PREF_VOICEOVER_STATE",
boughtHints = "PREF_BOUGHT_HINTS"
};
};
export const API_PREFIX = "http://localhost:8080";
+15
View File
@@ -0,0 +1,15 @@
// TODO: THISSSSS
import { API_PREFIX } from "./const";
export async function getSwordState() {
const response = await fetch(API_PREFIX + "/sword", {
"method": "GET",
"cache": "no-cache"
});
console.log(response);
if (response.ok) {
console.log(`${await response.text()}`);
}
return response;
}