Skip to content

Commit

Permalink
FIX cookie path
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Jul 23, 2024
1 parent d812f23 commit 14c4f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-src/static/html/dev-mode-iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
const version = searchParams.get('version');
const expiryDate = new Date();
expiryDate.setMonth(expiryDate.getMonth() + 3);
document.cookie = DEV_MODE_EVENT_ID + "=" + version + "; expires=" + expiryDate.toGMTString();
document.cookie = DEV_MODE_EVENT_ID + "=" + version + ";expires=" + expiryDate.toGMTString() + ';path=/;';
const bc = new BroadcastChannel(DEV_MODE_EVENT_ID);
bc.postMessage({ DEV_MODE_EVENT_ID, version, expiryDate: expiryDate.toGMTString() });
// console.dir({ DEV_MODE_EVENT_ID, version, expiryDate: expiryDate.toGMTString() })
Expand Down

0 comments on commit 14c4f91

Please sign in to comment.