add platform to mesh app

This commit is contained in:
Stewart Allen 2021-12-26 13:59:02 -05:00
commit af49add2b9
4 changed files with 45 additions and 8 deletions

View file

@ -9,11 +9,13 @@
if (typeof(module) === 'object') {
module.exports = terms;
}
if (typeof(self) !== 'undefined' && self.kiri) {
// self.exports = terms;
self.kiri.license = terms.LICENSE;
self.kiri.version = terms.VERSION;
self.kiri.copyright = terms.COPYRIGHT;
if (typeof(self) !== 'undefined' && self.gapp) {
let app = self.gapp;
app.license = terms.LICENSE;
app.version = terms.VERSION;
app.copyright = terms.COPYRIGHT;
// for earcut and other modules
self.module = { exports: terms };
}