Skip to content

Commit

Permalink
Merge pull request #326 from Turbo87/injection-workaround
Browse files Browse the repository at this point in the history
initializers/add-modals-container: Work around string injection bug
  • Loading branch information
lukemelia authored May 17, 2021
2 parents 0cf0726 + c2b5bad commit abcd08e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/initializers/add-modals-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function(AppOrEngine) {

AppOrEngine.register(
'config:modals-container-id',
Ember.testing ? 'ember-testing' : modalContainerElId,
{ toString: () => Ember.testing ? 'ember-testing' : modalContainerElId },
{ instantiate: false }
);

Expand Down

0 comments on commit abcd08e

Please sign in to comment.