populate version string in cli
This commit is contained in:
parent
cc861291a4
commit
b17c09cb9a
2 changed files with 3 additions and 1 deletions
|
|
@ -158,6 +158,7 @@ let moto = self.moto;
|
||||||
let engine = kiri.newEngine();
|
let engine = kiri.newEngine();
|
||||||
|
|
||||||
fetch('/web/obj/cube.stl').then(data => {
|
fetch('/web/obj/cube.stl').then(data => {
|
||||||
|
console.log({version: kiri.version});
|
||||||
let buf = data.arrayBuffer().buffer;
|
let buf = data.arrayBuffer().buffer;
|
||||||
engine.parse(buf)
|
engine.parse(buf)
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@
|
||||||
|
|
||||||
if (typeof(module) === 'object') {
|
if (typeof(module) === 'object') {
|
||||||
module.exports = terms;
|
module.exports = terms;
|
||||||
} else if (self.kiri) {
|
}
|
||||||
|
if (typeof(self) !== 'undefined' && self.kiri) {
|
||||||
// self.exports = terms;
|
// self.exports = terms;
|
||||||
self.kiri.license = terms.LICENSE;
|
self.kiri.license = terms.LICENSE;
|
||||||
self.kiri.version = terms.VERSION;
|
self.kiri.version = terms.VERSION;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue