fix cookie path
This commit is contained in:
parent
8f6b096d17
commit
a206ba2cf0
2
owe.js
2
owe.js
@ -82,7 +82,7 @@ async function sendWord() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Set the 'owe_user' cookie with the value obtained from getNextPlayer
|
// Set the 'owe_user' cookie with the value obtained from getNextPlayer
|
||||||
document.cookie = `owe_user=${encodeURIComponent(nextPlayer)}; path=/`;
|
document.cookie = `owe_user=${encodeURIComponent(nextPlayer)}; path=.`;
|
||||||
|
|
||||||
Http.send(data);
|
Http.send(data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user