Commit cb71c785 authored by wildfirecode's avatar wildfirecode

1

parent 36319a60
...@@ -95,6 +95,30 @@ export class Main extends eui.UILayer { ...@@ -95,6 +95,30 @@ export class Main extends eui.UILayer {
} }
private async runGame() { private async runGame() {
window['_error_storage_'] = [];
window['ERROR_CONFIG'] = {
client: "duiba-game",
pageId: 'fis',
imgUrl: "http://retcode.tuipink.com/report?"
};
function r() {
window['_error_storage_'] && window['_error_storage_'].push([].slice.call(arguments))
}
window.addEventListener && window.addEventListener("error", r, true);
var t = 3,
n = function e() {
var r = document.createElement("script");
r.async = !0, r.src = "//yun.tuia.cn/tuia/skyeye/skyeye.js", r.crossOrigin = "anonymous", r.onerror =
function () {
t-- , t > 0 && setTimeout(e, 1500)
}, document.head && document.head.appendChild(r)
};
setTimeout(n, 1500);
await this.loadResource() await this.loadResource()
this.createGameScene(); this.createGameScene();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment