1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-22 18:58:02 +00:00

write hashes for all files we fingerprint

This commit is contained in:
Henry Oswald 2017-12-14 10:59:46 +00:00
parent 490c56c692
commit 288af6772a
2 changed files with 8 additions and 5 deletions
services/web
.gitignore
app/coffee/infrastructure

View file

@ -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

View file

@ -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)