mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
MathJax v3.2.0 (#899)
This commit is contained in:
@@ -242,7 +242,10 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath
|
||||
let filename = channelPath.split('/').pop();
|
||||
if (bundle === 'MathJax (Bundle)' && filename !== 'MathJax.js') {
|
||||
filename = channelPath.replace(Resource.MATHJAX, '');
|
||||
if (!MathJaxFiles[filename]) {
|
||||
if (filename.startsWith('/npm/mathjax@3')) {
|
||||
filename = filename.replace('/npm/mathjax@3/', '');
|
||||
}
|
||||
if (!MathJaxFiles[filename] && !MathJax3Files[filename]) {
|
||||
console.warn(`${LogString.PREFIX} ${LogString.MISSING_RESOURCE} ${channelHost + channelPath}`);
|
||||
log.append(initiator, channelHost + channelPath, '-', true);
|
||||
return {
|
||||
|
Reference in New Issue
Block a user