mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat(Nui): Nui send event | Close button
This commit is contained in:
1 parent
3a213ea308
commit
5ae9f99f42
3 files changed
+31
-1
No files matched your search
@@ -0,0 +1,17 @@
|
||||
export default {
|
||||
async send(event, data = {}) {
|
||||
// /// #if DEBUG
|
||||
//return new Promise(resolve => setTimeout(resolve, 100));
|
||||
// /// #endif
|
||||
|
||||
/* eslint-disable no-unreachable */
|
||||
return fetch(`http://new-phone-who-dis/${event}`, {
|
||||
method: "post",
|
||||
headers: {
|
||||
"Content-type": "application/json; charset=UTF-8",
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
});
|
||||
/* eslint-enable no-unreachable */
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user