|
|
|
@ -309,6 +309,9 @@ function initWebTorrent() {
@@ -309,6 +309,9 @@ function initWebTorrent() {
|
|
|
|
|
//localStorage.debug = '*'
|
|
|
|
|
localStorage.removeItem('debug') |
|
|
|
|
|
|
|
|
|
if ($.localStorage.isSet('torrentIds')) |
|
|
|
|
twister.torrentIds = $.localStorage.get('torrentIds'); |
|
|
|
|
|
|
|
|
|
WEBTORRENT_ANNOUNCE = $.Options.WebTorrentTrackers.val.split(/[ ,]+/) |
|
|
|
|
$.getScript('js/webtorrent.min.js', function() { |
|
|
|
|
WebTorrentClient = new WebTorrent(); |
|
|
|
@ -320,9 +323,6 @@ function initWebTorrent() {
@@ -320,9 +323,6 @@ function initWebTorrent() {
|
|
|
|
|
console.error('WARNING: ' + err.message); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if ($.localStorage.isSet('torrentIds')) |
|
|
|
|
twister.torrentIds = $.localStorage.get('torrentIds'); |
|
|
|
|
|
|
|
|
|
$.getScript('js/localforage.min.js', function() { |
|
|
|
|
localforage.setDriver([localforage.INDEXEDDB,localforage.WEBSQL]).then(function() { |
|
|
|
|
for (var torrentId in twister.torrentIds) { |
|
|
|
|