mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
tweak(phone/debug): Set default data property for mockNuiEvent
This commit is contained in:
1 parent
bdbf342270
commit
b303e648df
1 file changed
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
function dispatchEvent({ method, app, data }: { method: string; app: string; data: unknown }) {
|
function dispatchEvent({ method, app, data = {} }: { method: string; app: string; data: unknown }) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.dispatchEvent(
|
window.dispatchEvent(
|
||||||
new MessageEvent('message', {
|
new MessageEvent('message', {
|
||||||
|
|||||||
Reference in new issue
Block a user