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

DataTables: Use minified CSS files (#1094)

This commit is contained in:
nobody
2022-07-30 06:14:53 +02:00
parent f1cc7736d7
commit 31e426c77e
2 changed files with 3 additions and 1 deletions

View File

@@ -271,6 +271,8 @@ requestAnalyzer._handleMathJax = function (filename, channelPath, channelHost, i
requestAnalyzer._handleDataTables = function (filename) {
if (!filename.endsWith('.min.js') && filename.endsWith('.js')) {
return filename.replace('.js', '.min.js');
} else if (!filename.endsWith('.min.css') && filename.endsWith('.css')) {
return filename.replace('.css', '.min.css');
}
return filename;
};