Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
fixup dependency injection
Browse files Browse the repository at this point in the history
  • Loading branch information
moesjarraf committed Nov 20, 2015
1 parent 10c068b commit 3075c31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/angular-pdfjs-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
});

module.run(function(pdfjsViewerConfig) {
module.run(['pdfjsViewerConfig', function(pdfjsViewerConfig) {
if (pdfjsViewerConfig.workerSrc) {
PDFJS.workerSrc = pdfjsViewerConfig.workerSrc;
}
Expand All @@ -55,7 +55,7 @@
if (pdfjsViewerConfig.disableWorker) {
PDFJS.disableWorker = true;
}
});
}]);

module.directive('pdfjsViewer', ['$interval', function ($interval) {
return {
Expand Down
4 changes: 2 additions & 2 deletions src/angular-pdfjs-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
});

module.run(function(pdfjsViewerConfig) {
module.run(['pdfjsViewerConfig', function(pdfjsViewerConfig) {
if (pdfjsViewerConfig.workerSrc) {
PDFJS.workerSrc = pdfjsViewerConfig.workerSrc;
}
Expand All @@ -55,7 +55,7 @@
if (pdfjsViewerConfig.disableWorker) {
PDFJS.disableWorker = true;
}
});
}]);

module.directive('pdfjsViewer', ['$interval', function ($interval) {
return {
Expand Down

0 comments on commit 3075c31

Please sign in to comment.