Skip to content

Commit 916443f

Browse files
sarupbanskotaclaude
andcommitted
fix: lint errors in lobbyside widget component
Move removeScript before private syncVisitorData (member-ordering), fix window cast for glint compatibility. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7b40c31 commit 916443f

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

app/components/lobbyside-widget/index.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,20 @@ export default class LobbysideWidgetComponent extends Component {
3535
document.body.appendChild(script);
3636
}
3737

38+
@action
39+
removeScript(): void {
40+
const script = document.getElementById(LOBBYSIDE_SCRIPT_ID);
41+
42+
if (script) {
43+
script.remove();
44+
}
45+
}
46+
3847
private syncVisitorData(): void {
3948
const user = this.authenticator.currentUser;
4049

41-
if (!user || !(window as Record<string, unknown>)['Lobbyside']) {
50+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
51+
if (!user || !(window as any)['Lobbyside']) {
4252
return;
4353
}
4454

@@ -51,13 +61,4 @@ export default class LobbysideWidgetComponent extends Component {
5161
github: user.githubUsername || '',
5262
});
5363
}
54-
55-
@action
56-
removeScript(): void {
57-
const script = document.getElementById(LOBBYSIDE_SCRIPT_ID);
58-
59-
if (script) {
60-
script.remove();
61-
}
62-
}
6364
}

0 commit comments

Comments
 (0)