Просмотр исходного кода

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

Disable CDN for PDFjs cmaps path

GitOrigin-RevId: 52658564f22f94b7bd9893c499c5c58429a360d0
Alasdair Smith 7 лет назад
Родитель
Сommit
6a2b3a39a9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/app/views/project/editor.pug

+ 1 - 1
services/web/app/views/project/editor.pug

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