mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 01:56:16 -08:00
refactor: improve error handling
This commit is contained in:
1 parent
1624a3d169
commit
ac78962bd4
1 file changed
+8
-6
@@ -31,12 +31,14 @@ export class EpgService {
|
||||
if (!Array.isArray(urls)) {
|
||||
urls = [urls];
|
||||
}
|
||||
urls.forEach((url) =>
|
||||
this.electronService.sendIpcEvent(EPG_FETCH, {
|
||||
url,
|
||||
})
|
||||
);
|
||||
this.showFetchSnackbar();
|
||||
if (urls?.length > 0) {
|
||||
urls.forEach((url) =>
|
||||
this.electronService.sendIpcEvent(EPG_FETCH, {
|
||||
url,
|
||||
})
|
||||
);
|
||||
this.showFetchSnackbar();
|
||||
}
|
||||
}
|
||||
|
||||
showFetchSnackbar() {
|
||||
|
||||
Reference in new issue
Block a user