提交 bdaf3e18 编写于 作者: B baiy 提交者: ninecents

代码优化

上级 5ac1cf14
......@@ -51,20 +51,22 @@ export const env = function (key) {
};
export const stat = function (action, data = {}) {
try {
let img = new Image(1, 1);
img.src = 'https://www.baiy.org/chrome_tool/stat/?' + queryStringify(
Object.assign(
{
v: env('version'),
a: action,
r: Math.random()
},
data
)
);
} catch (e) {
// todo
}
setTimeout(function () {
try {
let img = new Image(1, 1);
img.src = 'https://www.baiy.org/chrome_tool/stat/?' + queryStringify(
Object.assign(
{
v: env('version'),
a: action,
r: Math.random()
},
data
)
);
} catch (e) {
// todo
}
}, 3000)
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册