Skip to content

Commit

Permalink
Merge pull request #398 from bertdeblock/remove-use-of-ember-string
Browse files Browse the repository at this point in the history
Remove use of `@ember/string` to avoid deprecation
  • Loading branch information
bertdeblock authored Jan 15, 2023
2 parents 0a9533c + df3a9ae commit 27c6b95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addon/initializer-factory.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Ember from 'ember';
import { classify } from '@ember/string';

const { libraries } = Ember;

Expand All @@ -8,8 +7,7 @@ export default function initializerFactory(name, version) {

return function () {
if (!registered && name && version) {
let appName = classify(name);
libraries.register(appName, version);
libraries.register(name, version);
registered = true;
}
};
Expand Down

0 comments on commit 27c6b95

Please sign in to comment.