tweak(phone/debug): Set default data property for mockNuiEvent

This commit is contained in:
Taso committed 2021-03-05 17:09:09 -05:00
1 parent bdbf342270
commit b303e648df
1 file changed
+1 -1
+1 -1
View File
@@ -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', {