diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2023-04-03 22:12:41 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2023-04-03 22:12:41 +0200 |
| commit | 1df1ff6f074528a4ad6d4015c794a1555c1c942f (patch) | |
| tree | ad3b16291748c60441967996706006555919ef73 /frontend/ts/login.ts | |
| parent | c813dfadd4b673080695ef3ade37a44e37036c07 (diff) | |
| download | fia-1df1ff6f074528a4ad6d4015c794a1555c1c942f.tar.gz fia-1df1ff6f074528a4ad6d4015c794a1555c1c942f.tar.zst fia-1df1ff6f074528a4ad6d4015c794a1555c1c942f.zip | |
Polishing up
Add all files to repo
Add sql database
Correct urls
Add PHP code to repo
Update README.md with instructions how to start
Move from yarn to pnpm
Fix all issues with starting
Fix possibility of player changing their dice roll with refreshing the game
Diffstat (limited to 'frontend/ts/login.ts')
| -rw-r--r-- | frontend/ts/login.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend/ts/login.ts b/frontend/ts/login.ts index 658110d..e5dcb00 100644 --- a/frontend/ts/login.ts +++ b/frontend/ts/login.ts @@ -12,7 +12,7 @@ class Login { static clicked = false; static async start() { - let res = await (await fetch("/fia/startPoint")).json(); + let res = await (await fetch("startPoint")).json(); if (res.status === true) { new StartGame({ data: res.data.data, uid: res.uid }); } else { @@ -32,11 +32,11 @@ class Login { alert("Ditt namn är för långt!"); return; } - + Login.clicked = true; - let res = await Helpers.mFetch("/fia/login", { name: username }); + let res = await Helpers.mFetch("login", { name: username }); new StartGame(res); } } -Login.start();
\ No newline at end of file +Login.start(); |
