revert universal cookie 🍪
This commit is contained in:
parent
442b2b4602
commit
d2ab7775b9
@ -112,9 +112,12 @@ export const getBackendURL = (url_str) => {
|
|||||||
* @returns True if the backend is disabled, false otherwise.
|
* @returns True if the backend is disabled, false otherwise.
|
||||||
*/
|
*/
|
||||||
export const isBackendDisabled = () => {
|
export const isBackendDisabled = () => {
|
||||||
const backendEnabled = cookies.get("backend-enabled");
|
const cookie = document.cookie
|
||||||
return backendEnabled === "false";
|
.split("; ")
|
||||||
|
.find((row) => row.startsWith("backend-enabled="));
|
||||||
|
return cookie !== undefined && cookie.split("=")[1] == "false";
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if any event in the event queue is stateful.
|
* Determine if any event in the event queue is stateful.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user