diff --git a/src/scripts/content.ts b/src/scripts/content.ts index 70dae3e..2b3673a 100644 --- a/src/scripts/content.ts +++ b/src/scripts/content.ts @@ -11,12 +11,12 @@ async function grabPost(): Promise { console.log(`Using ${loaderName} importer to scrape this page`) return await loader.grabPost(document); } + } - // Try using the Fallback loader if no other loader can scrape this page - const post = new loaders.Fallback().grabPost(document); - if (post) { - return post; - } + // Try using the Fallback loader if no other loader can scrape this page + const post = new loaders.Fallback().grabPost(document); + if (post) { + return post; } return null;