Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding addition logs to debug voting.

  • Loading branch information...
commit 7edd524b25e314142374ac9ae1e9f0d26c9f4bfd 1 parent 62fe4d2
@cballou authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 tt-squared.js
View
5 tt-squared.js
@@ -854,6 +854,8 @@ window.TTFM_SQ = null;
* Update vote counters on the stats tab.
*/
var updateCounters = function() {
+ _log('Pre counter update');
+
// recalculate scores
votes.score = 100 * (votes.upvotes / votes.votes).toFixed(2);
votes.current.score = 100 * (votes.current.upvotes / votes.current.votes).toFixed(2);
@@ -904,6 +906,7 @@ window.TTFM_SQ = null;
}
_log('Performing vote updating actions.');
+ _log(e.room.metadata.votelog);
// perform actions
recordVote(e.room.metadata.votelog[0]);
@@ -1711,6 +1714,7 @@ window.TTFM_SQ = null;
requestNotificationPermission();
} else {
// handle web worker in chrome (via toobify.com)
+ /*
if ("webkitNotifications" in window) {
// create a new worker
var worker = new SharedWorker('https://github.com/cballou/Turntable.FM-Squared/raw/master/notifications/worker.js');
@@ -1728,6 +1732,7 @@ window.TTFM_SQ = null;
// start the shared worker connection
worker.start();
}
+ */
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.