mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
pass in PDFJS as a module, not global
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
define [
|
||||
"base"
|
||||
], (App) ->
|
||||
"pdfjs-dist/build/pdf"
|
||||
], (App, PDFJS) ->
|
||||
# App = angular.module 'PDFRenderer', ['pdfAnnotations', 'pdfTextLayer']
|
||||
|
||||
App.factory 'PDFRenderer', ['$q', '$timeout', 'pdfAnnotations', 'pdfTextLayer', 'pdfSpinner', ($q, $timeout, pdfAnnotations, pdfTextLayer, pdfSpinner) ->
|
||||
|
||||
Reference in New Issue
Block a user