Fixed debugging
This commit is contained in:
parent
9cc38d0d9a
commit
9d9ef890b5
4 changed files with 4 additions and 7 deletions
|
@ -13,7 +13,7 @@ opts = {announce: trackers}
|
|||
client = new WebTorrent
|
||||
|
||||
dbg = (string, torrent) ->
|
||||
if (window.localStorage ? window.localStorage.getItem('debug') == '*':false)
|
||||
if window.localStorage.getItem('debug')?
|
||||
if torrent
|
||||
console.debug '%c' + torrent.name + ' (' + torrent.infoHash + '): %c' + string, 'color: #33C3F0', 'color: #333'
|
||||
return
|
||||
|
|
|
@ -11,10 +11,7 @@
|
|||
client = new WebTorrent;
|
||||
|
||||
dbg = function(string, torrent) {
|
||||
var ref;
|
||||
if ((ref = window.localStorage) != null ? ref : window.localStorage.getItem('debug') === {
|
||||
'*': false
|
||||
}) {
|
||||
if (window.localStorage.getItem('debug') != null) {
|
||||
if (torrent) {
|
||||
console.debug('%c' + torrent.name + ' (' + torrent.infoHash + '): %c' + string, 'color: #33C3F0', 'color: #333');
|
||||
return;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
</head>
|
||||
<body ng-controller="bTorrentCtrl" ng-cloak="">
|
||||
<header>
|
||||
<h1>βTorrent<span class="version"> v0.6.1</span></h1>
|
||||
<h1>βTorrent<span class="version"> v0.6.2</span></h1>
|
||||
</header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
|
|
@ -18,7 +18,7 @@ html(ng-app='bTorrent', lang='en')
|
|||
header
|
||||
h1
|
||||
| βTorrent
|
||||
span.version v0.6.1
|
||||
span.version v0.6.2
|
||||
|
||||
.container
|
||||
.row
|
||||
|
|
Loading…
Reference in a new issue