js fixes
This commit is contained in:
parent
7418114497
commit
496d323644
|
@ -41,7 +41,7 @@ var lichess = {
|
|||
onProduction: /.+\.lichess\.org/.test(document.domain),
|
||||
socketUrl: document.domain + ":9000"
|
||||
};
|
||||
lichess.socketDefaults.options.debug = !lichess.onProduction;
|
||||
//lichess.socketDefaults.options.debug = !lichess.onProduction;
|
||||
|
||||
$(function() {
|
||||
|
||||
|
@ -296,7 +296,6 @@ $.fn.orNot = function() {
|
|||
};
|
||||
|
||||
$.trans = function(text) {
|
||||
//if (!lichess_translations[text]) console.debug(text);
|
||||
return lichess_translations[text] ? lichess_translations[text] : text;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,12 +15,6 @@ $.widget("lichess.game", {
|
|||
self.options.socketUrl = self.element.data('socket-url');
|
||||
self.socketAckTimeout;
|
||||
|
||||
//setInterval(function() {
|
||||
//$('a.view_tournament').each(function() {
|
||||
//location.href = $(this).attr("href");
|
||||
//});
|
||||
//}, 3000);
|
||||
|
||||
if (self.options.game.started) {
|
||||
self.indicateTurn();
|
||||
self.initSquaresAndPieces();
|
||||
|
|
Loading…
Reference in a new issue