Skip to content

Commit 06548fb

Browse files
committed
Cookieを整形
1 parent 1180ec5 commit 06548fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ const clickCheckUserAgent = () => {
2828
};
2929

3030
const clickCheckCookies = () => {
31-
const cookies = document.cookie;
31+
const cookies = document.cookie
32+
.split("; ")
33+
.map((item) => item.replace("=", " = "))
34+
.join("\n");
3235
window.alert(cookies);
3336
};
3437

0 commit comments

Comments
 (0)