Skip to content

Commit

Permalink
Remove unnecessary workaround
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
robertknight committed Oct 23, 2020
1 parent 0e74bb6 commit 74bb8ac
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/sidebar/services/oauth-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { resolve } from '../util/url';
*
* Interaction with OAuth endpoints in the annotation service is delegated to
* the `OAuthClient` class.
*
* @ngInject
*/
export default function auth(
$window,
Expand Down Expand Up @@ -307,14 +309,3 @@ export default function auth(
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',
];

0 comments on commit 74bb8ac

Please sign in to comment.