Merge pull request #2248 from overleaf/as-fix-cjk-prod

Disable CDN for PDFjs cmaps path

GitOrigin-RevId: 52658564f22f94b7bd9893c499c5c58429a360d0
This commit is contained in:
Alasdair Smith
2019-10-16 15:12:42 +01:00
committed by sharelatex
parent 9cf73f965c
commit 6a2b3a39a9

View File

@@ -139,7 +139,7 @@ block content
//- Set base path for Ace scripts loaded on demand/workers and don't use cdn
window.aceBasePath = "#{buildJsPath(lib('ace'), {cdn:false})}"
//- Set path for PDFjs CMaps
window.pdfCMapsPath = "#{buildJsPath('cmaps/')}"
window.pdfCMapsPath = "#{buildJsPath('cmaps/', {cdn: false})}"
window.uiConfig = JSON.parse('!{StringHelper.stringifyJsonForScript(uiConfig)}');
//- enable doc hash checking for all projects
//- used in public/js/libs/sharejs.js