diff options
| author | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-08 23:07:09 -0500 |
|---|---|---|
| committer | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-08 23:07:09 -0500 |
| commit | 6f4874fa20d4fa156dd762d5dacefd8a2e656bf0 (patch) | |
| tree | b2258517e17d4b1971789959fa3868c5c58d2e59 /webAO/utils/setCookie.js | |
| parent | 63a282481d033640a87f97b74f31136410c93717 (diff) | |
Lots of changes
Diffstat (limited to 'webAO/utils/setCookie.js')
| -rw-r--r-- | webAO/utils/setCookie.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/utils/setCookie.js b/webAO/utils/setCookie.js new file mode 100644 index 0000000..d3699a2 --- /dev/null +++ b/webAO/utils/setCookie.js @@ -0,0 +1,10 @@ +/** + * set a cookie + * the version from w3schools expects these to expire + * @param {String} cname The name of the cookie to return + * @param {String} value The value of that cookie option + */ + const setCookie = (cname, value) => { + document.cookie = `${cname}=${value}`; + } + export default setCookie
\ No newline at end of file |
