Skip to content

Commit

Permalink
removed check for details-menu dom element as it seems to always exist (
Browse files Browse the repository at this point in the history
#40)

Co-authored-by: adrian <asimbulan@eq3.ca>
  • Loading branch information
ad0ran and adrian authored Oct 24, 2022
1 parent 5ef68a4 commit 9f919b1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/content-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,7 @@ import { isBodyWithReplies, isRepositoryDetails } from "./validations";
return;
}

const onOpenSavedRepliesButtonClick = async () => {
while (
!document.querySelector(
`markdown-toolbar details-menu[src="/settings/replies?context=issue"]`
)
) {
await new Promise((resolve) => setTimeout(resolve, 10));
}
const onOpenSavedRepliesButtonClick = () => {
// 6. Add the new replies to the saved reply dropdown
const replyCategoriesDetailsMenus = document.querySelectorAll(
`markdown-toolbar details-menu[src="/settings/replies?context=issue"]`
Expand Down

0 comments on commit 9f919b1

Please sign in to comment.