Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moekiorg committed Jun 23, 2024
1 parent ea46293 commit cc27b96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ async function explore(question: string) {
Search query:`);
console.log(`Query: ${query}`);
if (query.match("null")) {
const resumePageTitle = exploredPages[exploredPages.length - 1].title;
exploredPages.splice(0, 5);
explorePage(exploredPages[exploredPages.length - 1].title, true);
explorePage(resumePageTitle, true);
}
if (query === queries[queries.length - 1]) {
break;
Expand Down

0 comments on commit cc27b96

Please sign in to comment.