useEffect() for Error page

This commit is contained in:
redphx
2025-02-07 17:01:03 +07:00
parent d4c1e8cce3
commit 4b06d9fcff
8 changed files with 44 additions and 44 deletions

View File

@@ -5,7 +5,6 @@ import { t } from "@utils/translation.ts";
import { StreamBadges } from "./stream-badges.ts";
import { StreamStats } from "./stream-stats.ts";
import { SettingsDialog } from "../ui/dialog/settings-dialog.ts";
import { BxEventBus } from "@/utils/bx-event-bus.ts";
export class StreamUiHandler {
@@ -240,13 +239,6 @@ export class StreamUiHandler {
}
const className = $elm.className || '';
// Error Page: .PureErrorPage.ErrorScreen
if (className.includes('PureErrorPage')) {
BxEventBus.Stream.emit('state.error', {});
return;
}
// Render badges
if (className.startsWith('StreamMenu-module__container')) {
StreamUiHandler.handleStreamMenu();