Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type { QuickAccessLink } from "$types/shared/components/settings.componen
import type { KickModuleConfig } from "$types/shared/module/module.types.ts";
import { type Signal, signal } from "@preact/signals";
import { render } from "preact";
import styled from "styled-components";

export default class ChannelSectionModule extends KickModule {
private quickAccessLinks = {} as Signal<QuickAccessLink[]>;
Expand All @@ -19,7 +18,7 @@ export default class ChannelSectionModule extends KickModule {
{
type: "selector",
key: "channel-info",
selectors: ["#channel-content section.rounded"],
selectors: ["#channel-content section.rounded-lg"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability, it's a good practice to extract magic strings like this CSS selector into a named constant at the top of the file or class. For example: const CHANNEL_SECTION_SELECTOR = "#channel-content section.rounded-lg";. This makes the code more readable and centralizes the selector, making it easier to update if it changes again in the future.

callback: this.run.bind(this),
useParent: true,
once: true,
Expand Down
Loading