Zwischenspeicher
This commit is contained in:
1 parent
ff5efa0423
commit
a6c476e385
6 files changed
+159
-4
No files matched your search
@@ -0,0 +1 @@
|
||||
// TODO: CodeChecker
|
||||
+3
-1
@@ -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";
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user