From 3075c31a5355dbd50b78eaff1918492557be1aa4 Mon Sep 17 00:00:00 2001 From: moesjarraf Date: Fri, 20 Nov 2015 10:40:15 +0100 Subject: [PATCH] fixup dependency injection --- dist/angular-pdfjs-viewer.js | 4 ++-- src/angular-pdfjs-viewer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/angular-pdfjs-viewer.js b/dist/angular-pdfjs-viewer.js index 84dd4cd..3b816a8 100644 --- a/dist/angular-pdfjs-viewer.js +++ b/dist/angular-pdfjs-viewer.js @@ -39,7 +39,7 @@ } }); - module.run(function(pdfjsViewerConfig) { + module.run(['pdfjsViewerConfig', function(pdfjsViewerConfig) { if (pdfjsViewerConfig.workerSrc) { PDFJS.workerSrc = pdfjsViewerConfig.workerSrc; } @@ -55,7 +55,7 @@ if (pdfjsViewerConfig.disableWorker) { PDFJS.disableWorker = true; } - }); + }]); module.directive('pdfjsViewer', ['$interval', function ($interval) { return { diff --git a/src/angular-pdfjs-viewer.js b/src/angular-pdfjs-viewer.js index 4c1cf5e..ae989da 100644 --- a/src/angular-pdfjs-viewer.js +++ b/src/angular-pdfjs-viewer.js @@ -39,7 +39,7 @@ } }); - module.run(function(pdfjsViewerConfig) { + module.run(['pdfjsViewerConfig', function(pdfjsViewerConfig) { if (pdfjsViewerConfig.workerSrc) { PDFJS.workerSrc = pdfjsViewerConfig.workerSrc; } @@ -55,7 +55,7 @@ if (pdfjsViewerConfig.disableWorker) { PDFJS.disableWorker = true; } - }); + }]); module.directive('pdfjsViewer', ['$interval', function ($interval) { return {