Skip to content

Commit d899b1d

Browse files
committed
docs banner: read the existing c4_sess sign-in marker
1 parent 0d777bb commit d899b1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/md_v2/overrides/main.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
</script>
99
<script>
1010
/* the cloud banner's state before the first paint: big (default) · small (after close) · off (after
11-
"don't show this again"); a signed-in cloud user (the c4_user marker cookie on .crawl4ai.com) gets small */
11+
"don't show this again"); a signed-in cloud user (the c4_sess sign-in marker cookie on .crawl4ai.com) gets small */
1212
(function(){try{var v=JSON.parse(localStorage.getItem("c4-cloud-banner")||"null");var s=(v&&v.version===1)?v.state:"big";
13-
if(s==="big"&&/(^|; )c4_user=1(;|$)/.test(document.cookie))s="small";document.documentElement.setAttribute("data-c4b",s);}
13+
if(s==="big"&&/(^|; )c4_sess=1(;|$)/.test(document.cookie))s="small";document.documentElement.setAttribute("data-c4b",s);}
1414
catch(e){document.documentElement.setAttribute("data-c4b","big");}})();
1515
</script>
1616
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pushfeedback/dist/pushfeedback/pushfeedback.css">

0 commit comments

Comments
 (0)