upd
- moved browser to player instance - logger accepts multiple arguments - changed error messages
This commit is contained in:
+6
-3
@@ -37,7 +37,7 @@ class Cef {
|
||||
}
|
||||
|
||||
return Promise.reject(
|
||||
'RageFW was started in window which not contain global variable MP!',
|
||||
'RageFW was started in window which does not contain MP',
|
||||
)
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ class Cef {
|
||||
}
|
||||
|
||||
return Promise.reject(
|
||||
'RageFW was started in window which not contain global variable MP!',
|
||||
'RageFW was started in window which does not contain MP',
|
||||
)
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ class Cef {
|
||||
}
|
||||
|
||||
return Promise.reject(
|
||||
'RageFW was started in window which not contain global variable MP!',
|
||||
'RageFW was started in window which does not contain MP',
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -75,3 +75,6 @@ class Cef {
|
||||
export const fw = {
|
||||
event: new Cef(),
|
||||
}
|
||||
;(async () => {
|
||||
await fw.event.triggerClient('cefReady')
|
||||
})()
|
||||
|
||||
@@ -4,7 +4,7 @@ export type { RageFW_ICustomClientEvent } from 'rage-fw-shared-types'
|
||||
|
||||
/**
|
||||
* Union of all available client event names
|
||||
* These only include custom events
|
||||
* These only include custom events and some extras from RageFW
|
||||
*/
|
||||
export type RageFW_ClientEvent = keyof RageFW_ICustomClientEvent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user