diff --git a/200.jade b/200.jade index e182b7e..e569be7 100644 --- a/200.jade +++ b/200.jade @@ -17,7 +17,7 @@ html(ng-app="BTorrent" lang="en") header h1 | βTorrent - span.version v0.14 + span.version v{{$root.version}} div.views(ng-show="$root.client.torrents.length == 0") a(ng-href="/#") Full | | diff --git a/app.coffee b/app.coffee index db45031..93401bb 100644 --- a/app.coffee +++ b/app.coffee @@ -1,3 +1,6 @@ +VERSION = "0.14" +BUILD = "1" + trackers = [ 'wss://tracker.btorrent.xyz' 'wss://tracker.webtorrent.io' @@ -40,6 +43,8 @@ dbg = (string, item, color) -> er = (err, item) -> dbg err, item, '#FF0000' +dbg "Starting... v#{VERSION}b#{BUILD}" + client = new WebTorrent {rtcConfig: rtcConfig} scope = null @@ -164,7 +169,7 @@ app.controller 'BTorrentCtrl', ['$scope','$rootScope','$http','$log','$location' $rootScope.onSeed = (torrent) -> $rootScope.onTorrent torrent, true - dbg 'Ready' + dbg "Ready" ] app.controller 'FullCtrl', ['$scope','$rootScope','$http','$log','$location', 'ngNotify', ($scope, $rootScope, $http, $log, $location, ngNotify) ->