dragon city
Dragon City
(function () {
var server = "https:\/\/dc-canvas.socialpointgames.com\/dragoncity\/web\/",jsErrorUrl = "\/dragoncity\/web\/log\/error\/js",
userId = "100003694581670",
stackAll = [],
permissionDenied = 'Permission denied',
notDefined = 'is not defined';
window.onerror = function(msg, file, line) {
if (// Knowed issues (NOT TRACK)
// Exception violates the browser's same-origin policy (Script from another domain)
msg != 'Script error.' &&
// Security exceptioncaused by cross-domain security policy in Flash plug-in.
msg.match(/Location.toString/) === null &&
// Security exception caused by cross-domain security policy in Flash plug-in.msg.match(/Permission denied to access property 'toString'/) === null &&
// Security exception caused by cross-domain security policy in Flash plug-in.
msg.slice(0, permissionDenied.length) !=permissionDenied
) {
file = (server == file.substr(0, server.length)) ? file.substr(server.length) : file;
var params = [
'msg=' + encodeURIComponent(msg),
'file=' + encodeURIComponent(file),'line=' + encodeURIComponent(line || 0)
].join('&');
if (stackAll.indexOf(params) < 0) {
stackAll.push(params);
params += '&user='+ encodeURIComponent(userId || '');
params +='&_='+ encodeURIComponent(+new Date);
// Knowed issues (TRACK)
if (// Error loading script
msg == 'Error loading script' || msg.slice(- notDefined.length) == notDefined
) { params +='&knowed_issue=1'; }
try {
(new Image()).src = jsErrorUrl + (jsErrorUrl.indexOf('?') >= 0 ? '&' : '?') + params;
} catch(e) {
console.log(['Error Tracking JS Errors', params, 'notsended'])
}
}
};
};
}());
function trackGameStatus(status) {
var userId = "100003694581670",
server = "https:\/\/dc-canvas.socialpointgames.com\/dragoncity\/web\/",
params =...
Regístrate para leer el documento completo.