Logging for missing MathJax files added

This commit is contained in:
nobody 2021-06-19 07:36:07 +02:00
parent 255fe35eaf
commit cf230fb9ff
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
if (bundle === 'MathJax (Bundle)' && filename !== 'MathJax.js') {
filename = channelPath.replace(Resource.MATHJAX, '');
if (!MathJaxFiles[filename]) {
console.warn(`[ LocalCDN ] Missing resource: ${targetPath}`);
log.append(initiator, channelHost + channelPath, '-', true);
break;
}
}