Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Aug 10, 2024
1 parent 0309d1e commit 52e7c07
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/shared/components/player/OPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,10 @@ const OPlayer = React.forwardRef(({ playerIsPlaying, duration, onEvent, autoplay
],

errorBuilder(e, _, builder) {
if (_ref.current?.options.source.title == '花束般的恋爱') {
builder({ message: '愿你有一天,能与你最重要的人重逢' })
return
}
const error = e as any
builder({
...e,
message:
(error.message ? `${error.message}\n\n` : '') +
(error.code ? `ErrorCode:${error.code} \n\n` : '') +
`愿你有一天,能与你最重要的人重逢 \n\n` +
'Open an issues https://github.com/shiyiya/oplayer/issues/new/choose',
})
},
Expand Down

0 comments on commit 52e7c07

Please sign in to comment.