mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-08-19 12:07:47 +00:00
fix: update webtorrent
This commit is contained in:
parent
158d6c159b
commit
5cf2a5d876
4 changed files with 7 additions and 7 deletions
|
|
@ -43,7 +43,7 @@
|
|||
"webpack": "^5.85.0",
|
||||
"webpack-cli": "^5.1.3",
|
||||
"webpack-dev-server": "^4.15.0",
|
||||
"webtorrent": "^2.0.36"
|
||||
"webtorrent": "^2.0.37"
|
||||
},
|
||||
"standard": {
|
||||
"ignore": [
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ specifiers:
|
|||
webpack: ^5.85.0
|
||||
webpack-cli: ^5.1.3
|
||||
webpack-dev-server: ^4.15.0
|
||||
webtorrent: ^2.0.36
|
||||
webtorrent: ^2.0.37
|
||||
|
||||
dependencies:
|
||||
utp-native: 2.5.3
|
||||
|
|
@ -66,7 +66,7 @@ devDependencies:
|
|||
webpack: 5.85.0_webpack-cli@5.1.3
|
||||
webpack-cli: 5.1.3_mukbot4opwgbtq7pljxl77qmse
|
||||
webpack-dev-server: 4.15.0_bauruoturm2vjupidmswuukmyy
|
||||
webtorrent: 2.0.36
|
||||
webtorrent: 2.0.37
|
||||
|
||||
packages:
|
||||
|
||||
|
|
@ -4784,8 +4784,8 @@ packages:
|
|||
engines: {node: '>=0.8.0'}
|
||||
dev: true
|
||||
|
||||
/webtorrent/2.0.36:
|
||||
resolution: {integrity: sha512-lhZZfTP3YoTlUn7omW5fXJGlk6pyCQEzanBReepIvnTEWZoxo/StmaipoYDxRM1V4eKdCTc0wQYYDrCE/14Qcw==}
|
||||
/webtorrent/2.0.37:
|
||||
resolution: {integrity: sha512-R49/kAFiqYvbO33GeFc6Mqdlp3hN8YVn+ObfGUA9/ELTxhsZ/xAR5EildLxVd8l8t95OetCfcccrU9hCaHShBg==}
|
||||
engines: {node: '>=14'}
|
||||
dependencies:
|
||||
'@thaunknown/simple-peer': 9.12.0
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class TorrentClient extends WebTorrent {
|
|||
// if (this.current.done) this.parseSubtitles()
|
||||
// this.current.once('done', this.boundParse)
|
||||
this.parseFonts(this.current)
|
||||
this.current.on('iterator', ({ iterator, req }, cb) => {
|
||||
this.current.on('iterator', ({ iterator }, cb) => {
|
||||
if (!this.parsed) {
|
||||
this.stream = new SubtitleStream(this.stream, iterator)
|
||||
this.handleSubtitleParser(this.stream, true)
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ function createWindow () {
|
|||
|
||||
let torrentLoad = null
|
||||
|
||||
if (process.env.NODE_ENV?.trim() !== 'development') {
|
||||
if (!development) {
|
||||
// Load production build
|
||||
torrentLoad = webtorrentWindow.loadFile(path.join(__dirname, '/background.html'))
|
||||
mainWindow.loadFile(path.join(__dirname, '/index.html'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue