diff --git a/services/web/.gitignore b/services/web/.gitignore index 8df4ab2fa6..d0053e47c8 100644 --- a/services/web/.gitignore +++ b/services/web/.gitignore @@ -69,12 +69,16 @@ Gemfile.lock public/js/libs/fineuploader-5.15.4.*.js public/js/libs/fineuploader-*.js -public/js/libs/pdfjs-1.7.225/compatibility.*.js -public/js/libs/pdfjs-1.7.225/pdf.*.js -public/js/libs/pdfjs-1.7.225/pdf.worker.*.js +public/js/libs/pdfjs-*/compatibility.*.js +public/js/libs/pdfjs-*/pdf.*.js +public/js/libs/pdfjs-*/pdf.worker.*.js public/js/libs/require.*.js public/stylesheets/ol-style.*.css public/stylesheets/style.*.css +public/js/ace-*/ace.*.js +public/js/ace-*/mode-latex.*.js +public/js/ace-*/snippets/latex.*.js +public/js/ace-*/worker-latex.*.js *.swp .DS_Store diff --git a/services/web/app/coffee/infrastructure/ExpressLocals.coffee b/services/web/app/coffee/infrastructure/ExpressLocals.coffee index 46f9eefb86..51b44a8996 100644 --- a/services/web/app/coffee/infrastructure/ExpressLocals.coffee +++ b/services/web/app/coffee/infrastructure/ExpressLocals.coffee @@ -60,8 +60,7 @@ for paths in pathList logger.log "#{filePath}: #{hash}" fingerprints[filePath] = hash - if paths.length == 1 - path = paths[0] + for path in paths splitPath = path.split("/") filenameSplit = splitPath.pop().split(".") filenameSplit.splice(filenameSplit.length-1, 0, hash)