Skip to content

Commit cff5706

Browse files
Check for cookie outside of variable
1 parent d7db3f4 commit cff5706

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

integrations/scarf/src/scarf-script.raw.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121

2222
let lastHref = null;
2323

24-
const cookieGranted = getCookie(GRANTED_COOKIE);
25-
2624
function sendScarfPing() {
27-
if (cookieGranted !== 'yes') {
25+
if (getCookie(GRANTED_COOKIE) !== 'yes') {
2826
return;
2927
}
3028

0 commit comments

Comments
 (0)