dragon city

Páginas: 3 (660 palabras) Publicado: 14 de noviembre de 2013


















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 =...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • dragon city
  • dragon city
  • Dragon City
  • Dragon City
  • Dragon city
  • dragon city
  • Dragon City
  • Dragon City (Apareamientos )

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS