moved browser on client side
This commit is contained in:
parent
301ef4ac57
commit
d6e9c92d0a
@ -59,7 +59,9 @@ class Player {
|
|||||||
throw new Error('You need to initialize browser first!')
|
throw new Error('You need to initialize browser first!')
|
||||||
return rpc.callBrowser(this.browser, eventName, args)
|
return rpc.callBrowser(this.browser, eventName, args)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Browser extends Player {
|
||||||
public registerBrowser(browser: BrowserMp) {
|
public registerBrowser(browser: BrowserMp) {
|
||||||
this.browser = browser
|
this.browser = browser
|
||||||
return browser
|
return browser
|
||||||
@ -69,6 +71,7 @@ class Player {
|
|||||||
export const fw = {
|
export const fw = {
|
||||||
event: new Client(),
|
event: new Client(),
|
||||||
player: new Player(),
|
player: new Player(),
|
||||||
|
browser: new Browser(),
|
||||||
system: {
|
system: {
|
||||||
log: new Logger(),
|
log: new Logger(),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user