Archived
init
This commit is contained in:
@@ -1,12 +1,3 @@
|
||||
import { fw } from 'rage-fw-client'
|
||||
import { fw } from '@entityseven/rage-fw-client'
|
||||
|
||||
fw.browser.registerBrowser(mp.browsers.new('package://cef/index.html'))
|
||||
|
||||
fw.event.register('customClientEvent', async ([greetings]) => {
|
||||
fw.system.log.info(greetings)
|
||||
|
||||
const data = await fw.player.triggerBrowser('customCefEvent', ['str'])
|
||||
fw.system.log.info(`CEF RESPONSE: ${data}`)
|
||||
|
||||
return 'Hola from client!'
|
||||
})
|
||||
fw.player.browser = mp.browsers.new('https://localhost:8080')
|
||||
|
||||
Reference in New Issue
Block a user