Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
 - js scans should only happen on those post types that are selected to be scanned.
  • Loading branch information
matt committed Dec 19, 2023
1 parent 3e230ff commit 5ab80d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/editorApp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'){
Expand Down

0 comments on commit 5ab80d9

Please sign in to comment.