vue update
This commit is contained in:
@ -32,16 +32,20 @@ window.aircox = {
|
||||
/**
|
||||
* Initialize main application and player.
|
||||
*/
|
||||
init(props=null, {config=null, builder=null, initPlayer=true, hotReload=false}={}) {
|
||||
builder = builder || this.builder
|
||||
this.builder = builder
|
||||
if(config || window.App)
|
||||
builder.config = config || window.App
|
||||
builder.title = document.title
|
||||
builder.mount({props})
|
||||
init(props=null, {config=null, builder=null, initBuilder=true,
|
||||
initPlayer=true, hotReload=false}={})
|
||||
{
|
||||
if(initBuilder) {
|
||||
builder = builder || this.builder
|
||||
this.builder = builder
|
||||
if(config || window.App)
|
||||
builder.config = config || window.App
|
||||
builder.title = document.title
|
||||
builder.mount({props})
|
||||
|
||||
if(hotReload)
|
||||
builder.enableHotReload(hotReload)
|
||||
if(hotReload)
|
||||
builder.enableHotReload(hotReload)
|
||||
}
|
||||
|
||||
if(initPlayer) {
|
||||
let playerBuilder = this.playerBuilder
|
||||
|
Reference in New Issue
Block a user