This commit is contained in:
thanawat saiyota 2026-06-16 13:49:26 +07:00
commit b5e0705f79
14 changed files with 262 additions and 103 deletions

View file

@ -97,8 +97,8 @@
websocketConnectedForUid = currentUser.uid;
console.log('connect ws after auth ready');
void currentUser.getIdToken().then((idToken) => {
connectToWebsocket(idToken);
void currentUser.getIdToken(true).then(async (idToken) => {
await connectToWebsocket(idToken);
});
}

View file

@ -58,9 +58,9 @@
}
});
function sendGetRecipeVersions(country: string) {
async function sendGetRecipeVersions(country: string) {
version_list = [];
sendMessage({
await sendMessage({
type: 'recipe_versions',
payload: {
auth: '',