1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Plugins excluded (#999)

This commit is contained in:
nobody
2022-05-23 06:15:27 +02:00
parent 0ee602102e
commit 509f2212c6
2 changed files with 8 additions and 0 deletions

View File

@@ -258,6 +258,13 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath
}
if (bundle === 'TinyMCE (Bundle)' && filename !== 'tinymce.min.js') {
filename = channelPath.replace(Resource.TINYMCE, '');
if (filename.startsWith('plugins/')) {
console.warn(`${LogString.PREFIX} ${LogString.MISSING_RESOURCE} ${channelHost + channelPath}`);
log.append(initiator, channelHost + channelPath, '-', true);
return {
'result': false,
};
}
}
return helpers.formatFilename(filename.endsWith('.js')
? `${targetPath + filename}m`