mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +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(() => {
|
||||
window.dispatchEvent(
|
||||
new MessageEvent('message', {
|
||||
|
||||
Reference in new issue
Block a user