chore: format with prettier
This commit is contained in:
@@ -18,9 +18,9 @@ type PlaybackHandler struct {
|
|||||||
svc domain.PlaybackService
|
svc domain.PlaybackService
|
||||||
animeSvc domain.AnimeService
|
animeSvc domain.AnimeService
|
||||||
|
|
||||||
proxyClient *http.Client
|
proxyClient *http.Client
|
||||||
streamingClient *http.Client
|
streamingClient *http.Client
|
||||||
subtitleCache sync.Map
|
subtitleCache sync.Map
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewPlaybackHandler(svc domain.PlaybackService, animeSvc domain.AnimeService) *PlaybackHandler {
|
func NewPlaybackHandler(svc domain.PlaybackService, animeSvc domain.AnimeService) *PlaybackHandler {
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ const showToast = ({ message, duration = 3000 }: ToastOptions): void => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const toast = (template.content.cloneNode(true) as DocumentFragment).firstElementChild as HTMLElement;
|
const toast = (template.content.cloneNode(true) as DocumentFragment)
|
||||||
|
.firstElementChild as HTMLElement;
|
||||||
if (!toast) return;
|
if (!toast) return;
|
||||||
const messageEl = toast.querySelector('.toast-message');
|
const messageEl = toast.querySelector('.toast-message');
|
||||||
const closeBtn = toast.querySelector('.toast-close');
|
const closeBtn = toast.querySelector('.toast-close');
|
||||||
|
|||||||
Reference in New Issue
Block a user