- moved browser to player instance
- logger accepts multiple arguments
- changed error messages
This commit is contained in:
2024-09-30 20:39:20 +01:00
parent cf9c4ce691
commit fafcdb50a8
10 changed files with 25 additions and 30 deletions
+6 -3
View File
@@ -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')
})()
+1 -1
View File
@@ -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