Skip to content

Commit 21c1acc

Browse files
authored
No issue - updated Clear cookies with the supported code (#62)
1 parent bbc349b commit 21c1acc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pages/documentation/functions/clear-cookies.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@ edit: documentation/functions/clear-cookies.md
66

77
### Action:
88

9-
bg-inject
9+
bg-function
1010

1111
### Script:
1212

13-
`sendBgInstruction = false; removeCookie("facebook");`
13+
```
14+
<$function=removeCookie>
15+
<$attr=facebook>
16+
```
1417

1518
### Description:
1619

1720
The function is designed to clear browser cookie that match corresponding attribute, in this case the function will remove each cookie which set by domain which contain "facebook" in the domain name, you can use any regular expression for the attribute.
1821

1922
For example if you will use the attribute mentioned below then CBA will delete all cookies during the project workflow:
2023

21-
`sendBgInstruction = false; removeCookie(".\*");`
24+
```
25+
<$function=removeCookie>
26+
<$attr=.*>
27+
```

0 commit comments

Comments
 (0)