@@ -38,7 +38,6 @@ function exists(selector: string): boolean {
3838 * ```
3939 */
4040async function waitFor ( detection : ( ) => boolean ) : Promise < boolean > {
41- // eslint-disable-next-line no-await-in-loop -- We need to wait on each frame
4241 while ( ! detection ( ) && document . readyState !== 'complete' ) {
4342 // eslint-disable-next-line no-await-in-loop
4443 await new Promise ( resolve => {
@@ -492,10 +491,10 @@ TEST: addTests('isRepo', [
492491 'isSingleReleaseOrTag' ,
493492 'isTags' ,
494493 // Repo URLs from detections that also cover non-repo pages
495- 'https://github.com/sindresorhus/refined-github/projects/3' , // from isProject
496- 'https://github.com/tophf/mpiv/discussions/50' , // from isDiscussion
497- 'https://github.com/withastro/roadmap/discussions/new?category=proposal' , // from isNewDiscussion
498- 'https://github.com/tophf/mpiv/discussions' , // from isDiscussionList
494+ 'https://github.com/sindresorhus/refined-github/projects/3' , // From isProject
495+ 'https://github.com/tophf/mpiv/discussions/50' , // From isDiscussion
496+ 'https://github.com/withastro/roadmap/discussions/new?category=proposal' , // From isNewDiscussion
497+ 'https://github.com/tophf/mpiv/discussions' , // From isDiscussionList
499498 // These URLs are repos but don't match any specific detection
500499 'https://github.com/sindresorhus/refined-github/milestones/new' , // Gotcha for isRepoTaxonomyIssueOrPRList
501500 'https://github.com/sindresorhus/refined-github/milestones/1/edit' , // Gotcha for isRepoTaxonomyIssueOrPRList
0 commit comments