Skip to content

Commit c7fe040

Browse files
committed
Merge branch 'develop'
2 parents 1683ce2 + 9dc735f commit c7fe040

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/contentScript/twitch/content-script.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { BaseContainer } from "../base/container";
55
import { Handle } from "../base/handler";
66
import { addHistoryStateListener } from "../base/historyStateListener";
77
import { observe } from "@utils/utils-common";
8+
import { Logger } from "@utils/logger";
89

910
class TwitchChatExtractor extends ChatExtractor {
1011
extract(node: Node): ChatInfo | undefined {
@@ -93,5 +94,12 @@ observe('.community-points-summary', async (elem) => {
9394

9495
const boxBtn = elem.querySelector('button.bCfhNy') as HTMLButtonElement;
9596

96-
if (boxBtn) boxBtn.click();
97+
if (boxBtn) {
98+
const isPointAutoOn = (await browser.storage.local.get('pointBoxAuto')).pointBoxAuto;
99+
100+
if (isPointAutoOn === 'off') return;
101+
102+
boxBtn.click();
103+
Logger('observe .community-points-summary callback: ', '포인트 박스를 클릭했어요!')
104+
}
97105
}, false)

0 commit comments

Comments
 (0)