Skip to content

Commit 06a6fc5

Browse files
authored
Include discussions in hasRichTextEditor (#79)
1 parent 94741eb commit 06a6fc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@ export const hasRichTextEditor = (url: URL | HTMLAnchorElement | Location = loca
501501
hasComments(url) ||
502502
isNewIssue(url) ||
503503
isCompare(url) ||
504-
isRepliesSettings(url);
504+
isRepliesSettings(url) ||
505+
isDiscussion(url);
505506

506507
collect.set('hasCode', combinedTestOnly);
507508
export const hasCode = (url: URL | HTMLAnchorElement | Location = location): boolean => // Static code, not the editor

0 commit comments

Comments
 (0)