Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit 9f18124

Browse files
committed
Adding import into run() statements to fix strict-di issues. Fixes #571
1 parent 5a9b0ff commit 9f18124

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/plugins/batteryStatus.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ angular.module('ngCordova.plugins.batteryStatus', [])
3333
}, false);
3434
return true;
3535
}])
36-
.run(function ($cordovaBatteryStatus) {
37-
});
36+
.run(['$cordovaBatteryStatus', function ($cordovaBatteryStatus) {
37+
}]);

src/plugins/network.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ angular.module('ngCordova.plugins.network', [])
5252
}
5353
};
5454
}])
55-
.run(function ($cordovaNetwork) {
56-
});
55+
.run(['$cordovaNetwork', function ($cordovaNetwork) {
56+
}]);

0 commit comments

Comments
 (0)