1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-17 09:58:45 +00:00

switch to patched version of pdfjs

This commit is contained in:
Brian Gough 2016-09-19 10:31:24 +01:00
parent 6f50d56ceb
commit 64dc1784d3
3 changed files with 8 additions and 8 deletions
services/web
Gruntfile.coffee
app
coffee/infrastructure
views/project

View file

@ -159,10 +159,10 @@ module.exports = (grunt) ->
paths:
"moment": "libs/moment-2.9.0"
"mathjax": "/js/libs/mathjax/MathJax.js?config=TeX-AMS_HTML"
"libs/pdf": "libs/pdfjs-1.3.91/pdf"
"libs/pdf": "libs/pdfjs-1.3.91p1/pdf"
shim:
"libs/pdf":
deps: ["libs/pdfjs-1.3.91/compatibility"]
deps: ["libs/pdfjs-1.3.91p1/compatibility"]
skipDirOptimize: true
modules: [

View file

@ -27,9 +27,9 @@ for path in [
"#{jsPath}main.js",
"#{jsPath}libs.js",
"#{jsPath}ace/ace.js",
"#{jsPath}libs/pdfjs-1.3.91/pdf.js",
"#{jsPath}libs/pdfjs-1.3.91/pdf.worker.js",
"#{jsPath}libs/pdfjs-1.3.91/compatibility.js",
"#{jsPath}libs/pdfjs-1.3.91p1/pdf.js",
"#{jsPath}libs/pdfjs-1.3.91p1/pdf.worker.js",
"#{jsPath}libs/pdfjs-1.3.91p1/compatibility.js",
"/stylesheets/style.css"
]
filePath = Path.join __dirname, "../../../", "public#{path}"

View file

@ -102,13 +102,13 @@ block content
"paths" : {
"mathjax": "#{buildJsPath('/libs/mathjax/MathJax.js', {cdn:false, fingerprint:false, qs:{config:'TeX-AMS_HTML'}})}",
"moment": "libs/moment-2.7.0",
"libs/pdf": "libs/pdfjs-1.3.91/pdf"
"libs/pdf": "libs/pdfjs-1.3.91p1/pdf",
},
"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'ide.js')}-#{fingerprint(jsPath + 'libs.js')}",
"waitSeconds": 0,
"shim": {
"libs/pdf": {
deps: ["libs/pdfjs-1.3.91/compatibility"]
deps: ["libs/pdfjs-1.3.91p1/compatibility"]
},
"ace/ext-searchbox": {
deps: ["ace/ace"]
@ -127,7 +127,7 @@ block content
- locals.suppressDefaultJs = true
- var pdfPath = 'libs/pdfjs-1.3.91/pdf.worker.js'
- var pdfPath = 'libs/pdfjs-1.3.91p1/pdf.worker.js'
- var fingerprintedPath = fingerprint(jsPath+pdfPath)
- var pdfJsWorkerPath = buildJsPath(pdfPath, {cdn:false,qs:{fingerprint:fingerprintedPath}}) // don't use worker for cdn