From 1b775906c473748b8285ae910691f19f7b8812f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez?= Date: Sat, 2 Jan 2016 16:49:48 -0500 Subject: [PATCH] v0.10.3 - Use new WebRTC support APPI --- _compiled/app.js | 6 ++---- _compiled/index.html | 4 ++-- app.coffee | 4 +--- index.jade | 4 ++-- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/_compiled/app.js b/_compiled/app.js index ca3e03c..8c5d674 100644 --- a/_compiled/app.js +++ b/_compiled/app.js @@ -63,9 +63,8 @@ app.controller('BTorrentCtrl', [ '$scope', '$http', '$log', '$location', 'ngNotify', function($scope, $http, $log, $location, ngNotify) { - var rtc, updateAll; - rtc = window.mozRTCPeerConnection || window.RTCPeerConnection || window.webkitRTCPeerConnection; - if (rtc == null) { + var updateAll; + if (WebTorrent.WEBRTC_SUPPORT == null) { $scope.disabled = true; ngNotify.set('Please use latest Chrome, Firefox or Opera', { type: 'error', @@ -73,7 +72,6 @@ button: false }); } - rtc = null; $scope.client = client; $scope.seedIt = true; $scope.columns = [ diff --git a/_compiled/index.html b/_compiled/index.html index 6ba4dcd..7f577d9 100644 --- a/_compiled/index.html +++ b/_compiled/index.html @@ -8,7 +8,7 @@ - + @@ -16,7 +16,7 @@
-

βTorrent v0.10.2

+

βTorrent v0.10.3

diff --git a/app.coffee b/app.coffee index 13c6252..9898000 100644 --- a/app.coffee +++ b/app.coffee @@ -50,11 +50,9 @@ app = angular.module 'BTorrent', ['ui.grid', 'ui.grid.resizeColumns', 'ui.grid.s ] app.controller 'BTorrentCtrl', ['$scope','$http','$log','$location', 'ngNotify', ($scope, $http, $log, $location, ngNotify) -> - rtc = window.mozRTCPeerConnection || window.RTCPeerConnection || window.webkitRTCPeerConnection - if !rtc? + if !WebTorrent.WEBRTC_SUPPORT? $scope.disabled = true ngNotify.set 'Please use latest Chrome, Firefox or Opera', {type: 'error', sticky: true, button: false} - rtc = null $scope.client = client $scope.seedIt = true diff --git a/index.jade b/index.jade index 6cf2ae0..e7876ad 100644 --- a/index.jade +++ b/index.jade @@ -8,7 +8,7 @@ html(ng-app='BTorrent', lang='en') meta(name='keywords', content='βTorrent, btorrent, client, webtorrent, browser, torrent, stream, bittorrent, torrenting, sharing, filesharing') meta(name='author', content='Diego Rodríguez Baquero - DiegoRBaquero') meta(name='viewport', content='width=device-width, initial-scale=1') - script(src='https://cdn.jsdelivr.net/g/webtorrent@0.67.1,momentjs@2.10,angularjs@1.4,angular.ui-grid@3.0,angular.ng-notify@0.7,angular.file-upload@10.1') + script(src='https://cdn.jsdelivr.net/g/webtorrent@0.68,momentjs@2.10,angularjs@1.4,angular.ui-grid@3.0,angular.ng-notify@0.7,angular.file-upload@10.1') link(rel='stylesheet', href='https://cdn.jsdelivr.net/g/normalize@3.0,skeleton@2.0,angular.ng-notify@0.7(ng-notify.min.css)') link(rel='stylesheet', href='https://cdn.jsdelivr.net/fontawesome/4.5/css/font-awesome.min.css') link(rel='stylesheet', href='https://cdn.jsdelivr.net/angular.ui-grid/3.0.7/ui-grid.min.css') @@ -17,7 +17,7 @@ html(ng-app='BTorrent', lang='en') header h1 | βTorrent - span.version v0.10.2 + span.version v0.10.3 .container .row .four.columns