mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 11:48:29 +00:00
18 lines
516 B
JavaScript
18 lines
516 B
JavaScript
const _global = window;
|
|
const adapter = _global.__globalAdapter = {};
|
|
|
|
Object.assign(adapter, {
|
|
init () {
|
|
require('./wrapper/builtin');
|
|
_global.DOMParser = require('../../common/xmldom/dom-parser').DOMParser;
|
|
require('./wrapper/unify');
|
|
require('./wrapper/fs-utils');
|
|
require('../../common/engine/globalAdapter');
|
|
require('./wrapper/systemInfo');
|
|
},
|
|
|
|
adaptEngine () {
|
|
require('../../common/engine');
|
|
require('./wrapper/engine/');
|
|
},
|
|
}); |