From 4b48e686bc6a02aaf51b00e38326a27c57439100 Mon Sep 17 00:00:00 2001 From: neobooru <50623835+neobooru@users.noreply.github.com> Date: Thu, 19 Sep 2019 23:25:56 +0200 Subject: [PATCH] Fix disaster waiting to happen --- src/scripts/content.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;