fix: doesn't autoload on pages that don't have pages to load (#270)
* fix: no autoload on singular pages without next page * fix: formatted
This commit is contained in:
@@ -70,7 +70,7 @@ export async function loadNextCourseCatalogPage(): Promise<[AutoLoadStatusType,
|
||||
* @param doc the document to get the next button from
|
||||
* @returns the next button from the document
|
||||
*/
|
||||
function getNextButton(doc: Document) {
|
||||
export function getNextButton(doc: Document) {
|
||||
return doc.querySelector<HTMLAnchorElement>(NEXT_PAGE_BUTTON_SELECTOR);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user