@wpmu DEV
Yes, that is the plugin.
Since it’s a premium plugin, there isn’t a public support topic link but the developer has said they will look at it to find a better way to check this.
Here is the hotfix I have…
There is a file in the plugin called panel.js that has this line:
req && req.data && req.data.match(/vc_inline=true/) && $(‘#vc_logo’).addClass(‘vc_ajax-loading’);
I have replaced it with this (wrapping their line with an element check, and function check):
if ( req && req.data && (typeof req.data.match == ‘function’)) {
req && req.data && req.data.match(/vc_inline=true/) && $(‘#vc_logo’).addClass(‘vc_ajax-loading’);
}
It’s not very elegant, but I’m not very good with javascript shorthand, and I wanted to leave their code moderately unaltered for now.