mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
terser was not called because mime type did not match
This commit is contained in:
parent
cedd27e4fe
commit
1d8e8d3484
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ function getFileCompressed(filename, contentType, callback) {
|
||||||
getFile(filename, function (error, content) {
|
getFile(filename, function (error, content) {
|
||||||
if (error || !content || !settings.minify) {
|
if (error || !content || !settings.minify) {
|
||||||
callback(error, content);
|
callback(error, content);
|
||||||
} else if (contentType == 'text/javascript') {
|
} else if (contentType == 'application/javascript') {
|
||||||
threadsPool.queue(async ({ compressJS }) => {
|
threadsPool.queue(async ({ compressJS }) => {
|
||||||
try {
|
try {
|
||||||
logger.info('Compress JS file %s.', filename)
|
logger.info('Compress JS file %s.', filename)
|
||||||
|
|
Loading…
Reference in a new issue