From 5ab80d9f5eb8a308d115fe80b0c74f866c0102ac Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 19 Dec 2023 13:47:13 -0600 Subject: [PATCH] Bugfix - js scans should only happen on those post types that are selected to be scanned. --- src/editorApp/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/editorApp/index.js b/src/editorApp/index.js index 9a82e2cf..bd487700 100644 --- a/src/editorApp/index.js +++ b/src/editorApp/index.js @@ -5,7 +5,10 @@ import { init as initCheckPage } from './checkPage'; window.addEventListener('DOMContentLoaded', () => { - if(settings.JS_SCAN_ENABLED){ + + const SCANNABLE_POST_TYPE = edac_editor_app.active; + + if(SCANNABLE_POST_TYPE && settings.JS_SCAN_ENABLED){ if(edac_editor_app.pro === '1'){