Skip to content

Commit

Permalink
fix: correct the icon location in Staging Ground
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep authored Dec 5, 2024
1 parent 16e9b0b commit 58c85cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/UserscriptTools/Post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ export default class Post {
}

public addIcons(): void {
const iconLocation = this.element.querySelector(
'a.question-hyperlink, a.answer-hyperlink, .s-link, .js-post-menu > div.d-flex'
);
const iconLocation = this.element.querySelector('.js-post-menu > div.d-flex')
?? this.element.querySelector('a.question-hyperlink, a.answer-hyperlink, .s-link');

const icons = (Object.values(this.reporters) as Reporter[])
.filter(reporter => reporter.wasReported())
.map(reporter => reporter.getIcon());
Expand Down

0 comments on commit 58c85cd

Please sign in to comment.