Removed unnecessary variables
This commit is contained in:
parent
374642d9b7
commit
25fe56cdec
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue