From dbfe3ef757109e26c6ee6acac9d2f5da59c51ffc Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 16 Jul 2022 22:24:02 -0400 Subject: [PATCH] Add more documentation about windows --- development_docs/windows.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/development_docs/windows.md b/development_docs/windows.md index f6e8afe11c..eee38b1dee 100644 --- a/development_docs/windows.md +++ b/development_docs/windows.md @@ -86,6 +86,14 @@ You can also set cookie flags by accessing the flag API, eg. https://api.jungle.horse/flags/design_refresh/enable +Or toggle cookies manually, eg. + +```javascript +let flagValue=(document.cookie.split(";").find(f => f.includes("refresh")) || "").trim().split("=")[1] === "true"; document.cookie = `refresh=${!flagValue}`; document.location.reload(); +``` + +Where "refresh" is the name of the cookie flag to toggle. + Fixing common errors --------------------