@fmfe/genesis-remote
Advanced tools
Comparing version 0.0.53-alpha.5 to 0.0.53-alpha.6
@@ -258,4 +258,11 @@ "use strict"; | ||
this.$nextTick(function () { | ||
var options = __assign(__assign({}, _this.installOptions), { el: _this.$el.firstChild }); | ||
var options = __assign({}, _this.installOptions); | ||
if (!_this.$el.firstChild) | ||
return; | ||
Object.defineProperty(options, 'el', { | ||
enumerable: false, | ||
value: _this.$el.firstChild | ||
}); | ||
if (options.el && window.genesis && !_this.destroyed) { | ||
_this.$emit('install', options); | ||
_this.appId = window.genesis.install(options); | ||
@@ -323,8 +330,3 @@ } | ||
]).then(function () { | ||
_this.installOptions = { | ||
id: data.id, | ||
name: data.name, | ||
state: data.state, | ||
url: data.url | ||
}; | ||
_this.installOptions = data; | ||
_this.install(); | ||
@@ -331,0 +333,0 @@ }); |
{ | ||
"name": "@fmfe/genesis-remote", | ||
"version": "0.0.53-alpha.5", | ||
"version": "0.0.53-alpha.6", | ||
"description": "", | ||
@@ -12,3 +12,3 @@ "main": "dist/index.js", | ||
"license": "MIT", | ||
"gitHead": "8f6043e98706e2e124b246af9be7d2879795b5e1", | ||
"gitHead": "301c828ca9e58b70f307b551d92bbfb4f16abebb", | ||
"sideEffects": false, | ||
@@ -24,4 +24,4 @@ "homepage": "https://fmfe.github.io/genesis-docs/", | ||
"devDependencies": { | ||
"@fmfe/genesis-core": "^0.0.53-alpha.5" | ||
"@fmfe/genesis-core": "^0.0.53-alpha.6" | ||
} | ||
} |
@@ -268,6 +268,11 @@ /* eslint-disable @typescript-eslint/prefer-for-of */ | ||
const options = { | ||
...this.installOptions, | ||
el: this.$el.firstChild | ||
...this.installOptions | ||
}; | ||
if (!this.$el.firstChild) return; | ||
Object.defineProperty(options, 'el', { | ||
enumerable: false, | ||
value: this.$el.firstChild | ||
}); | ||
if (options.el && (window as any).genesis && !this.destroyed) { | ||
this.$emit('install', options); | ||
this.appId = (window as any).genesis.install(options); | ||
@@ -337,8 +342,3 @@ } | ||
]).then(() => { | ||
this.installOptions = { | ||
id: data.id, | ||
name: data.name, | ||
state: data.state, | ||
url: data.url | ||
}; | ||
this.installOptions = data; | ||
this.install(); | ||
@@ -345,0 +345,0 @@ }); |
29488
859