Minor update
This commit is contained in:
parent
445f715038
commit
c60cdfe9c1
2 changed files with 26 additions and 25 deletions
14
app.js
14
app.js
|
@ -1,6 +1,6 @@
|
||||||
/* global WebTorrent, angular, moment, prompt */
|
/* global WebTorrent, angular, moment, prompt */
|
||||||
|
|
||||||
const VERSION = '0.17.6'
|
const VERSION = '0.17.7'
|
||||||
|
|
||||||
const trackers = ['wss://tracker.btorrent.xyz', 'wss://tracker.openwebtorrent.com', 'wss://tracker.fastcast.nz']
|
const trackers = ['wss://tracker.btorrent.xyz', 'wss://tracker.openwebtorrent.com', 'wss://tracker.fastcast.nz']
|
||||||
|
|
||||||
|
@ -21,13 +21,13 @@ const trackerOpts = {
|
||||||
rtcConfig: rtcConfig
|
rtcConfig: rtcConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
const debug = window.localStorage.getItem('debug') != null
|
const debug = window.localStorage.getItem('debug') !== null
|
||||||
|
|
||||||
const dbg = function (string, item, color) {
|
const dbg = function (string, item, color) {
|
||||||
color = color != null ? color : '#333333'
|
color = color !== null ? color : '#333333'
|
||||||
if (debug) {
|
if (debug) {
|
||||||
if ((item != null) && item.name) {
|
if (item && item.name) {
|
||||||
return console.debug(`%cβTorrent:${item.infoHash != null ? 'torrent ' : 'torrent ' + item._torrent.name + ':file '}${item.name}${item.infoHash != null ? ' (' + item.infoHash + ')' : ''} %c${string}`, 'color: #33C3F0', `color: ${color}`)
|
return console.debug(`%cβTorrent:${item.infoHash !== null ? 'torrent ' : 'torrent ' + item._torrent.name + ':file '}${item.name}${item.infoHash !== null ? ' (' + item.infoHash + ')' : ''} %c${string}`, 'color: #33C3F0', `color: ${color}`)
|
||||||
} else {
|
} else {
|
||||||
return console.debug(`%cβTorrent:client %c${string}`, 'color: #33C3F0', `color: ${color}`)
|
return console.debug(`%cβTorrent:client %c${string}`, 'color: #33C3F0', `color: ${color}`)
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ app.controller('BTorrentCtrl', ['$scope', '$rootScope', '$http', '$log', '$locat
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
html: true
|
html: true
|
||||||
})
|
})
|
||||||
if (WebTorrent.WEBRTC_SUPPORT == null) {
|
if (!WebTorrent.WEBRTC_SUPPORT) {
|
||||||
$rootScope.disabled = true
|
$rootScope.disabled = true
|
||||||
ngNotify.set('Please use latest Chrome, Firefox or Opera', {
|
ngNotify.set('Please use latest Chrome, Firefox or Opera', {
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
@ -371,4 +371,4 @@ app.filter('humanTime', function () {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
app.filter('progress', function () { return function (num) { `${(100 * num).toFixed(1)}%` } })
|
app.filter('progress', function () { return function (num) { return `${(100 * num).toFixed(1)}%` } })
|
||||||
|
|
|
@ -25,7 +25,8 @@
|
||||||
<a class="button" href="https://github.com/DiegoRBaquero/BTorrent/issues" target="_blank"><i class="fa fa-github"></i> Suggest a feature / Report a bug <i class="fa fa-comment"></i></a><br>
|
<a class="button" href="https://github.com/DiegoRBaquero/BTorrent/issues" target="_blank"><i class="fa fa-github"></i> Suggest a feature / Report a bug <i class="fa fa-comment"></i></a><br>
|
||||||
<b>βTorrent is an Open-Source project by <a href="https://diegorbaquero.com" target="_blank">DiegoRBaquero</a></b><br>
|
<b>βTorrent is an Open-Source project by <a href="https://diegorbaquero.com" target="_blank">DiegoRBaquero</a></b><br>
|
||||||
<b> <a href="https://tracker.btorrent.xyz/stats" target="_blank">βTorrent's Tracker Stats</a></b><br>
|
<b> <a href="https://tracker.btorrent.xyz/stats" target="_blank">βTorrent's Tracker Stats</a></b><br>
|
||||||
Powered by <a href="https://github.com/feross/webtorrent" target="_blank">WebTorrent</a><br>
|
Powered by <a href="https://github.com/webtorrent/webtorrent" target="_blank">WebTorrent</a><br>
|
||||||
|
<a href="https://www.vultr.com/?ref=6823526"><img src="https://www.vultr.com/media/banner_2.png" width="468" height="60"></a>
|
||||||
</footer>
|
</footer>
|
||||||
<div class="spinner" ng-show="client.processing"><i class="fa fa-spinner fa-spin spinner-icon"></i></div>
|
<div class="spinner" ng-show="client.processing"><i class="fa fa-spinner fa-spin spinner-icon"></i></div>
|
||||||
<script src="app.js"></script>
|
<script src="app.js"></script>
|
||||||
|
|
Loading…
Reference in a new issue