Skip to content

Commit 7d3dfe5

Browse files
committed
Merge pull request #1046 from ThomsC/patch-2
auth.js doesn't pass minification
2 parents 6b7a1a5 + a74f837 commit 7d3dfe5

File tree

1 file changed

+4
-4
lines changed
  • packages/angular-meteor-auth/modules

1 file changed

+4
-4
lines changed

packages/angular-meteor-auth/modules/auth.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
angular
22
.module('angular-meteor.auth')
3-
.service('$auth', function ($q, $rootScope, $timeout) {
3+
.service('$auth',['$q', '$rootScope', '$timeout', function ($q, $rootScope, $timeout) {
44
class AngularMeteorAuthentication {
55
constructor() {
66
this.accountsPackage = Package['accounts-base'];
@@ -74,8 +74,8 @@ angular
7474
let instance = new AngularMeteorAuthentication();
7575

7676
angular.extend(this, Object.getPrototypeOf(instance));
77-
})
78-
.run(($auth, $rootScope) => {
77+
}])
78+
.run(['$auth', '$rootScope', function($auth, $rootScope) {
7979
$auth._autorun(() => {
8080
if (!Meteor.user) return;
8181

@@ -85,4 +85,4 @@ angular
8585
loggingIn: Meteor.loggingIn()
8686
};
8787
});
88-
});
88+
}]);

0 commit comments

Comments
 (0)