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