Version and build vars

This commit is contained in:
Diego Rodríguez 2016-03-12 04:53:05 -03:00
parent f0369a07b3
commit f558cc06e9
2 changed files with 7 additions and 2 deletions

View file

@ -17,7 +17,7 @@ html(ng-app="BTorrent" lang="en")
header header
h1 h1
| βTorrent | βTorrent
span.version v0.14 span.version v{{$root.version}}
div.views(ng-show="$root.client.torrents.length == 0") div.views(ng-show="$root.client.torrents.length == 0")
a(ng-href="/#") Full a(ng-href="/#") Full
| | | |

View file

@ -1,3 +1,6 @@
VERSION = "0.14"
BUILD = "1"
trackers = [ trackers = [
'wss://tracker.btorrent.xyz' 'wss://tracker.btorrent.xyz'
'wss://tracker.webtorrent.io' 'wss://tracker.webtorrent.io'
@ -40,6 +43,8 @@ dbg = (string, item, color) ->
er = (err, item) -> er = (err, item) ->
dbg err, item, '#FF0000' dbg err, item, '#FF0000'
dbg "Starting... v#{VERSION}b#{BUILD}"
client = new WebTorrent {rtcConfig: rtcConfig} client = new WebTorrent {rtcConfig: rtcConfig}
scope = null scope = null
@ -164,7 +169,7 @@ app.controller 'BTorrentCtrl', ['$scope','$rootScope','$http','$log','$location'
$rootScope.onSeed = (torrent) -> $rootScope.onSeed = (torrent) ->
$rootScope.onTorrent torrent, true $rootScope.onTorrent torrent, true
dbg 'Ready' dbg "Ready"
] ]
app.controller 'FullCtrl', ['$scope','$rootScope','$http','$log','$location', 'ngNotify', ($scope, $rootScope, $http, $log, $location, ngNotify) -> app.controller 'FullCtrl', ['$scope','$rootScope','$http','$log','$location', 'ngNotify', ($scope, $rootScope, $http, $log, $location, ngNotify) ->