mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 05:36:17 -08:00
refactor: style and code improvements
This commit is contained in:
1 parent
53bcbf7147
commit
55e160da76
12 files changed
+147
-101
No files matched your search
@@ -183,11 +183,19 @@ export class PwaService extends DataService {
|
||||
})
|
||||
)
|
||||
.subscribe((response) => {
|
||||
window.postMessage({
|
||||
type: XTREAM_RESPONSE,
|
||||
payload: (response as any).payload,
|
||||
action: payload.params.action,
|
||||
});
|
||||
if (!(response as any).payload) {
|
||||
window.postMessage({
|
||||
type: ERROR,
|
||||
status: (response as any).status,
|
||||
message: (response as any).message ?? 'Unknown error',
|
||||
});
|
||||
} else {
|
||||
window.postMessage({
|
||||
type: XTREAM_RESPONSE,
|
||||
payload: (response as any).payload,
|
||||
action: payload.params.action,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user