add platform to mesh app
This commit is contained in:
parent
302931bfaf
commit
af49add2b9
4 changed files with 45 additions and 8 deletions
|
|
@ -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 };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue