mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix bug in toggle watchlater
This commit is contained in:
parent
a5c0fdfa9a
commit
05290e7a2f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/custom-navbar.min.js
vendored
2
min/custom-navbar.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1105,11 +1105,7 @@ class Activities extends NavbarComponent {
|
||||
try {
|
||||
this.watchlater = !this.watchlater
|
||||
const { toggleWatchlater } = await import('../../video/watchlater-api')
|
||||
if (this.watchlater === false) {
|
||||
await toggleWatchlater(this.card.aid, true)
|
||||
} else {
|
||||
await toggleWatchlater(this.card.aid, false)
|
||||
}
|
||||
await toggleWatchlater(this.card.aid, this.watchlater)
|
||||
} catch (error) {
|
||||
logError(`稍后再看操作失败: ${error}`)
|
||||
this.watchlater = !this.watchlater
|
||||
|
||||
Loading…
Reference in New Issue
Block a user