Commit 74bb8acf authored by Robert Knight's avatar Robert Knight

Remove unnecessary workaround

The transform-async-to-promises Babel plugin has been replaced by native
async/await support in most of the code, except for the boot script.
parent 0e74bb63
...@@ -24,6 +24,8 @@ import { resolve } from '../util/url'; ...@@ -24,6 +24,8 @@ import { resolve } from '../util/url';
* *
* Interaction with OAuth endpoints in the annotation service is delegated to * Interaction with OAuth endpoints in the annotation service is delegated to
* the `OAuthClient` class. * the `OAuthClient` class.
*
* @ngInject
*/ */
export default function auth( export default function auth(
$window, $window,
...@@ -307,14 +309,3 @@ export default function auth( ...@@ -307,14 +309,3 @@ export default function auth(
tokenGetter, tokenGetter,
}); });
} }
// `$inject` is added manually rather than using `@ngInject` to work around
// a conflict between the transform-async-to-promises and angularjs-annotate
// Babel plugins.
auth.$inject = [
'$window',
'apiRoutes',
'localStorage',
'settings',
'toastMessenger',
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment