Removed unnecessary variables

This commit is contained in:
nobody 2022-08-08 19:44:56 +02:00
parent 374642d9b7
commit 25fe56cdec
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 6 additions and 6 deletions

View File

@ -234,9 +234,9 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath
let filename = channelPath.split('/').pop();
if (bundle === 'MathJax (Bundle)' && filename !== 'MathJax.js') {
filename = requestAnalyzer._handleMathJax(filename, channelPath, channelHost, initiator);
filename = requestAnalyzer._handleMathJax(channelPath, channelHost, initiator);
} else if (bundle === 'TinyMCE (Bundle)' && filename !== 'tinymce.min.js') {
filename = requestAnalyzer._handleTinyMCE(filename, channelPath, channelHost, initiator);
filename = requestAnalyzer._handleTinyMCE(channelPath, channelHost, initiator);
} else if (bundle === 'DataTables (Bundle)') {
filename = requestAnalyzer._handleDataTables(filename);
}
@ -252,8 +252,8 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath
: targetPath + filename);
};
requestAnalyzer._handleMathJax = function (filename, channelPath, channelHost, initiator) {
filename = channelPath.replace(Resource.MATHJAX, '');
requestAnalyzer._handleMathJax = function (channelPath, channelHost, initiator) {
let filename = channelPath.replace(Resource.MATHJAX, '');
if (filename.startsWith('/npm/mathjax@3')) {
filename = filename.replace('/npm/mathjax@3/', '');
}
@ -277,8 +277,8 @@ requestAnalyzer._handleDataTables = function (filename) {
return filename;
};
requestAnalyzer._handleTinyMCE = function (filename, channelPath, channelHost, initiator) {
filename = channelPath.replace(Resource.TINYMCE, '');
requestAnalyzer._handleTinyMCE = function (channelPath, channelHost, initiator) {
let filename = channelPath.replace(Resource.TINYMCE, '');
if (filename.startsWith('plugins/')) {
console.warn(`${LogString.PREFIX} ${LogString.MISSING_RESOURCE} ${channelHost + channelPath}`);
log.append(initiator, channelHost + channelPath, '-', true);