From 78a778922ddde768b2686eed61826245e6faad99 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 8 Dec 2022 10:14:45 -0500 Subject: [PATCH] Minor code review --- src/js/contentscript.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/contentscript.js b/src/js/contentscript.js index 75971b6c3..6576bce53 100644 --- a/src/js/contentscript.js +++ b/src/js/contentscript.js @@ -1153,7 +1153,9 @@ vAPI.DOMFilterer = class { idFromNode(document.body, hashes); classesFromNode(document.body, hashes); } - getSurveyResults(hashes, true); + if ( hashes.length !== 0 ) { + getSurveyResults(hashes, true); + } addPendingList(document.querySelectorAll( '[id]:not(html):not(body),[class]:not(html):not(body)' ));