From 48cd6e8d609989adfd69b1f24c76fcd0f34d22da Mon Sep 17 00:00:00 2001 From: Sulthan Zaki Date: Tue, 11 Aug 2026 20:27:11 +0700 Subject: [PATCH] Address review: match the sibling adapter guard in the lnw skip (#91) The manga script's refresh guards both the adapter and its method; the novel guard skipped the adapter null-check. Provably non-null today, but the sibling shape is the convention to match. --- userscript/novel-bookmark.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userscript/novel-bookmark.user.js b/userscript/novel-bookmark.user.js index 847647e..8f75a3e 100644 --- a/userscript/novel-bookmark.user.js +++ b/userscript/novel-bookmark.user.js @@ -862,7 +862,7 @@ // before the due filter records no freshness timestamp and consumes no // per-navigation batch slot. const adapter = adapterFor(site); - if (!adapter.latestChapterFromAnchors) return; + if (!adapter || !adapter.latestChapterFromAnchors) return; const checked = loadLastChecked(); const now = Date.now();